fix: [crud] speculative fix for notice error on metatemplates being accessed that aren't loaded
parent
6d41622129
commit
ab5cee58ad
|
@ -674,6 +674,7 @@ class CRUDComponent extends Component
|
||||||
if (!empty($pruneEmptyDisabled) && !$metaTemplate->enabled) {
|
if (!empty($pruneEmptyDisabled) && !$metaTemplate->enabled) {
|
||||||
unset($metaTemplates[$i]);
|
unset($metaTemplates[$i]);
|
||||||
}
|
}
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
$newestTemplate = $this->MetaTemplates->getNewestVersion($metaTemplate);
|
$newestTemplate = $this->MetaTemplates->getNewestVersion($metaTemplate);
|
||||||
if (!empty($newestTemplate) && !empty($metaTemplates[$i])) {
|
if (!empty($newestTemplate) && !empty($metaTemplates[$i])) {
|
||||||
|
|
Loading…
Reference in New Issue