From 24fc229be563de0157ed18ee199dfab889286169 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Fri, 23 Jul 2021 12:20:48 -0400 Subject: [PATCH] Fix issue processwire/processwire-issues#1363 --- wire/modules/Process/ProcessPageEdit/ProcessPageEdit.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wire/modules/Process/ProcessPageEdit/ProcessPageEdit.module b/wire/modules/Process/ProcessPageEdit/ProcessPageEdit.module index eb1218b4..30875206 100644 --- a/wire/modules/Process/ProcessPageEdit/ProcessPageEdit.module +++ b/wire/modules/Process/ProcessPageEdit/ProcessPageEdit.module @@ -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;