diff --git a/src/Controller/Component/CRUDComponent.php b/src/Controller/Component/CRUDComponent.php index 7699417..1808f42 100644 --- a/src/Controller/Component/CRUDComponent.php +++ b/src/Controller/Component/CRUDComponent.php @@ -674,6 +674,7 @@ class CRUDComponent extends Component if (!empty($pruneEmptyDisabled) && !$metaTemplate->enabled) { unset($metaTemplates[$i]); } + continue; } $newestTemplate = $this->MetaTemplates->getNewestVersion($metaTemplate); if (!empty($newestTemplate) && !empty($metaTemplates[$i])) {