From bd17bdfb6b9e634ad2349733ca0bcf23ae99bb52 Mon Sep 17 00:00:00 2001 From: iglocska Date: Tue, 26 Nov 2019 12:34:22 +0100 Subject: [PATCH] fix: [UI] includeSightingdb flag not set correctly in the event attribute index --- app/Controller/EventsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Controller/EventsController.php b/app/Controller/EventsController.php index 691dbdd96..e8171b4f2 100644 --- a/app/Controller/EventsController.php +++ b/app/Controller/EventsController.php @@ -1253,7 +1253,7 @@ class EventsController extends AppController if (isset($filters['deleted'])) { $deleted = $filters['deleted'] == 2 ? 0 : 1; } - $this->set('includeSightingdb', (!empty($filters['includeSightingdb'] && Configure::read('Plugin.Sightings_sighting_db_enable')))); + $this->set('includeSightingdb', (!empty($filters['includeSightingdb']) && Configure::read('Plugin.Sightings_sighting_db_enable'))); $this->set('deleted', $deleted); $this->set('typeGroups', array_keys($this->Event->Attribute->typeGroupings)); $this->set('attributeFilter', isset($filters['attributeFilter']) ? $filters['attributeFilter'] : 'all');