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)) {