mirror of
https://github.com/processwire/processwire.git
synced 2025-08-12 17:54:44 +02:00
Fix issue processwire/processwire-issues#1678
This commit is contained in:
@@ -143,6 +143,8 @@ class ProcessPageClone extends Process {
|
|||||||
$parent = $page->parent();
|
$parent = $page->parent();
|
||||||
$parentTemplate = $parent->template;
|
$parentTemplate = $parent->template;
|
||||||
$pageTemplate = $page->template;
|
$pageTemplate = $page->template;
|
||||||
|
|
||||||
|
if(!$parentTemplate) return false;
|
||||||
|
|
||||||
if($page->hasStatus(Page::statusSystem) || $page->hasStatus(Page::statusSystemID)) return false;
|
if($page->hasStatus(Page::statusSystem) || $page->hasStatus(Page::statusSystemID)) return false;
|
||||||
if($parentTemplate->noChildren) return false;
|
if($parentTemplate->noChildren) return false;
|
||||||
|
Reference in New Issue
Block a user