From f8c8bbcb0b62016cbcec7e5729182040f4e5b5c4 Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Tue, 1 Mar 2022 14:07:20 +0100 Subject: [PATCH] fix: [component:CRUD] Fixed typo massageMetaFields --- src/Controller/Component/CRUDComponent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controller/Component/CRUDComponent.php b/src/Controller/Component/CRUDComponent.php index 8d3d595..ac2555a 100644 --- a/src/Controller/Component/CRUDComponent.php +++ b/src/Controller/Component/CRUDComponent.php @@ -364,7 +364,7 @@ class CRUDComponent extends Component // prune empty values and marshall fields public function massageMetaFields($entity, $input, $allMetaTemplates=[]) { - if (empty($input['MetaTemplates'] || !$this->metaFieldsSupported())) { + if (empty($input['MetaTemplates']) || !$this->metaFieldsSupported()) { return ['entity' => $entity, 'metafields_to_delete' => []]; }