mirror of
https://github.com/processwire/processwire.git
synced 2025-08-23 06:44:38 +02:00
Fix issue processwire/processwire-issues#1363
This commit is contained in:
@@ -2706,7 +2706,7 @@ class ProcessPageEdit extends Process implements WirePageEditor, ConfigurableMod
|
|||||||
if(!in_array($template->id, $parent->template->childTemplates)) continue;
|
if(!in_array($template->id, $parent->template->childTemplates)) continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!$superAdvanced && $template->noParents < 0 && $template->getNumPages() > 0) {
|
if(!$superAdvanced && ((int) $template->noParents) < 0 && $template->getNumPages() > 0) {
|
||||||
// only one of these is allowed to exist (noParents=-1)
|
// only one of these is allowed to exist (noParents=-1)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user