From ec76948ebd93ada2db823ab535b11f722950e2bb Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Thu, 20 Jan 2022 13:54:17 +0100 Subject: [PATCH] fix: [component:CRUD] Filtering view variables get correctly set --- src/Controller/Component/CRUDComponent.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Controller/Component/CRUDComponent.php b/src/Controller/Component/CRUDComponent.php index a9f9756..d479a27 100644 --- a/src/Controller/Component/CRUDComponent.php +++ b/src/Controller/Component/CRUDComponent.php @@ -159,11 +159,15 @@ class CRUDComponent extends Component if ($this->taggingSupported()) { $this->Controller->set('taggingEnabled', true); $this->setAllTags(); + } else { + $this->Controller->set('taggingEnabled', false); } if ($this->metaFieldsSupported()) { $metaTemplates = $this->getMetaTemplates()->toArray(); $this->Controller->set('metaFieldsEnabled', true); $this->Controller->set('metaTemplates', $metaTemplates); + } else { + $this->Controller->set('metaFieldsEnabled', false); } $filters = !empty($this->Controller->filterFields) ? $this->Controller->filterFields : []; $this->Controller->set('filters', $filters);