fix: remove filter

pull/93/head
Luciano Righetti 2022-03-08 15:55:23 +01:00
parent 1a5ee2767f
commit e5d0ffa041
1 changed files with 1 additions and 2 deletions

View File

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