From e5d0ffa0419cbe02464b34b6c00ba4b108d8777d Mon Sep 17 00:00:00 2001 From: Luciano Righetti Date: Tue, 8 Mar 2022 15:55:23 +0100 Subject: [PATCH] fix: remove filter --- src/Controller/MetaTemplatesController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Controller/MetaTemplatesController.php b/src/Controller/MetaTemplatesController.php index b06b494..10a014d 100644 --- a/src/Controller/MetaTemplatesController.php +++ b/src/Controller/MetaTemplatesController.php @@ -61,8 +61,7 @@ class MetaTemplatesController extends AppController throw new NotFoundException(__('Invalid {0} for provided ID.', $this->MetaTemplates->getAlias(), $template_id)); } $metaTemplate = $this->MetaTemplates->find()->where([ - 'id' => $template_id, - 'enabled' => 1 + 'id' => $template_id ])->contain(['MetaTemplateFields'])->first(); if (empty($metaTemplate)) {