fix: [crud] speculative fix for notice error on metatemplates being accessed that aren't loaded

cli-modification-summary
iglocska 2022-11-11 15:30:55 +01:00
parent 6d41622129
commit ab5cee58ad
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 1 additions and 0 deletions

View File

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