1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-18 20:41:16 +02:00
This commit is contained in:
Ryan Cramer
2021-07-23 12:20:48 -04:00
parent 7048296a08
commit 24fc229be5

View File

@@ -2706,7 +2706,7 @@ class ProcessPageEdit extends Process implements WirePageEditor, ConfigurableMod
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)
continue;