fix: remove filter
parent
1a5ee2767f
commit
e5d0ffa041
|
@ -61,8 +61,7 @@ class MetaTemplatesController extends AppController
|
||||||
throw new NotFoundException(__('Invalid {0} for provided ID.', $this->MetaTemplates->getAlias(), $template_id));
|
throw new NotFoundException(__('Invalid {0} for provided ID.', $this->MetaTemplates->getAlias(), $template_id));
|
||||||
}
|
}
|
||||||
$metaTemplate = $this->MetaTemplates->find()->where([
|
$metaTemplate = $this->MetaTemplates->find()->where([
|
||||||
'id' => $template_id,
|
'id' => $template_id
|
||||||
'enabled' => 1
|
|
||||||
])->contain(['MetaTemplateFields'])->first();
|
])->contain(['MetaTemplateFields'])->first();
|
||||||
|
|
||||||
if (empty($metaTemplate)) {
|
if (empty($metaTemplate)) {
|
||||||
|
|
Loading…
Reference in New Issue