1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-11 17:24:46 +02:00
This commit is contained in:
Ryan Cramer
2023-02-03 07:48:32 -05:00
parent 22250b483f
commit d5c59e7f10

View File

@@ -143,6 +143,8 @@ class ProcessPageClone extends Process {
$parent = $page->parent();
$parentTemplate = $parent->template;
$pageTemplate = $page->template;
if(!$parentTemplate) return false;
if($page->hasStatus(Page::statusSystem) || $page->hasStatus(Page::statusSystemID)) return false;
if($parentTemplate->noChildren) return false;