mirror of
https://github.com/processwire/processwire.git
synced 2025-08-13 10:15:28 +02:00
Fix issue processwire/processwire-issues#1678
This commit is contained in:
@@ -144,6 +144,8 @@ class ProcessPageClone extends Process {
|
|||||||
$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;
|
||||||
if($pageTemplate->noParents) return false;
|
if($pageTemplate->noParents) return false;
|
||||||
|
Reference in New Issue
Block a user