mirror of
https://github.com/processwire/processwire.git
synced 2025-08-09 08:17:12 +02:00
Minor fix in PagesEditor class
This commit is contained in:
@@ -353,7 +353,7 @@ class PagesEditor extends Wire {
|
|||||||
if(!$parent->id) $parent = $this->pages->get("include=all, template=$idStr");
|
if(!$parent->id) $parent = $this->pages->get("include=all, template=$idStr");
|
||||||
}
|
}
|
||||||
|
|
||||||
if($parent->id) $page->parent = $parent;
|
if($parent && $parent->id) $page->parent = $parent;
|
||||||
}
|
}
|
||||||
|
|
||||||
// assign page name
|
// assign page name
|
||||||
|
Reference in New Issue
Block a user