1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-22 22:34:15 +02:00
This commit is contained in:
Ryan Cramer
2018-12-12 14:28:24 -05:00
parent 365d49bcaa
commit 6d1b558d85

View File

@@ -1114,6 +1114,7 @@ class PagesEditor extends Wire {
$copy->name = $name; $copy->name = $name;
$copy->parent = $parent; $copy->parent = $parent;
$copy->of(false); $copy->of(false);
$copy->set('numChildren', 0);
// set any properties indicated in options // set any properties indicated in options
if(isset($options['set']) && is_array($options['set'])) { if(isset($options['set']) && is_array($options['set'])) {