mirror of
https://github.com/processwire/processwire.git
synced 2025-08-11 17:24:46 +02:00
Fix issue processwire/processwire-issues#1678
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user