diff --git a/app/Controller/EventsController.php b/app/Controller/EventsController.php index cf87a6456..50a4c3825 100644 --- a/app/Controller/EventsController.php +++ b/app/Controller/EventsController.php @@ -1590,7 +1590,8 @@ class EventsController extends AppController // look in the parameters if we are doing advanced filtering or not private function __checkIfAdvancedFiltering($filters) { - $advancedFilteringActive = array_diff_key($filters, array('sort'=>0, 'direction'=>0, 'focus'=>0, 'extended'=>0, 'overrideLimit'=>0, 'filterColumnsOverwrite'=>0, 'attributeFilter'=>0)); + $advancedFilteringActive = array_diff_key($filters, array('sort'=>0, 'direction'=>0, 'focus'=>0, 'extended'=>0, 'overrideLimit'=>0, 'filterColumnsOverwrite'=>0, 'attributeFilter'=>0, 'extended' => 0)); + debug($advancedFilteringActive); if (count($advancedFilteringActive) > 0) { if (count(array_diff_key($advancedFilteringActive, array('deleted', 'includeRelatedTags'))) > 0) { $res = true; diff --git a/app/View/Elements/Events/View/eventFilteringQueryBuilder.ctp b/app/View/Elements/Events/View/eventFilteringQueryBuilder.ctp index b43e51122..964a13098 100644 --- a/app/View/Elements/Events/View/eventFilteringQueryBuilder.ctp +++ b/app/View/Elements/Events/View/eventFilteringQueryBuilder.ctp @@ -136,36 +136,28 @@ function triggerEventFilteringTool(clicked) { 5: "Inherit", } }, - // { - // "input": "radio", - // "type": "integer", - // "operators": [ - // "equal", - // ], - // "unique": true, - // "id": "taggedAttributes", - // "label": "Tags", - // "values": { - // 0: "Both", - // 1: "Untagged Attribute", - // 2: "Tagged Attribute" - // } - // }, - // { - // "input": "radio", - // "type": "integer", - // "operators": [ - // "equal", - // ], - // "unique": true, - // "id": "galaxyAttachedAttributes", - // "label": "Galaxies", - // "values": { - // 0: "Both", - // 1: "Attributes without galaxy", - // 2: "Attributes with galaxy" - // } - // }, + { + "input": "select", + "type": "string", + "operators": [ + "equal", + ], + "unique": true, + "id": "taggedAttributes", + "label": "Tags", + "values": + }, + { + "input": "select", + "type": "string", + "operators": [ + "equal", + ], + "unique": true, + "id": "galaxyAttachedAttributes", + "label": "Galaxies", + "values": + }, // { // "input": "select", // "type": "string", @@ -274,16 +266,16 @@ function triggerEventFilteringTool(clicked) { operator: 'in', value: }, - // { - // field: 'taggedAttributes', - // id: 'taggedAttributes', - // value: - // }, - // { - // field: 'galaxyAttachedAttributes', - // id: 'galaxyAttachedAttributes', - // value: - // }, + { + field: 'taggedAttributes', + id: 'taggedAttributes', + value: + }, + { + field: 'galaxyAttachedAttributes', + id: 'galaxyAttachedAttributes', + value: + }, // { // condition: 'OR', // not: false,