Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.

Default value for filters

Default value for filters is an option (from Totara 11) when defining embedded report or when defining the default reports through the define_defaultfilters method.


The only thing that needs to be added is the defaultvalue option as an array with the corresponding filter options. 


Code Block
  'type' => 'user',
  'value' => 'deleted',
  'advanced' => 0,
  'defaultvalue' => ['operator'=> 1, 'value' => 0]