|
|
|
|
@@ -33,19 +33,21 @@ class OrganonProjectHelper extends Base
|
|
|
|
|
// plugin (fixed, non-translated strings so dedup is stable across locales); a user's own filter
|
|
|
|
|
// with a reserved name is absorbed into the canonical form. "Show all tasks" is a REPLACE filter
|
|
|
|
|
// (append 0) so it clears; the rest are APPEND (1) so clicks stack (distinct attributes AND).
|
|
|
|
|
// Names are prefixed by group so the dropdown -- which core sorts alphabetically by name
|
|
|
|
|
// (CustomFilterModel::getAll -> asc(name)) -- clusters them: Board < Month < Recurring.
|
|
|
|
|
const GROUP_SHOW_ALL = array(
|
|
|
|
|
array('Show all tasks', '', 0),
|
|
|
|
|
array('Board: show all tasks', '', 0),
|
|
|
|
|
);
|
|
|
|
|
const GROUP_MONTH = array(
|
|
|
|
|
array('Due this month', 'duemonth:this', 1),
|
|
|
|
|
array('Around this month', 'aroundmonth:this', 1),
|
|
|
|
|
array('Month: due this month', 'duemonth:this', 1),
|
|
|
|
|
array('Month: around this month', 'aroundmonth:this', 1),
|
|
|
|
|
);
|
|
|
|
|
const GROUP_RECURRING = array(
|
|
|
|
|
array('All recurring', 'recurring:anyall', 1),
|
|
|
|
|
array('Event recurring', 'recurring:evtall', 1),
|
|
|
|
|
array('Calendar recurring', 'recurring:calall', 1),
|
|
|
|
|
array('Recurring templates', 'recurring:anyori', 1),
|
|
|
|
|
array('Recurring duplicates', 'recurring:anydup', 1),
|
|
|
|
|
array('Recurring: all', 'recurring:anyall', 1),
|
|
|
|
|
array('Recurring: event', 'recurring:evtall', 1),
|
|
|
|
|
array('Recurring: calendar', 'recurring:calall', 1),
|
|
|
|
|
array('Recurring: templates', 'recurring:anyori', 1),
|
|
|
|
|
array('Recurring: duplicates', 'recurring:anydup', 1),
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|