diff --git a/code/CMSMain.php b/code/CMSMain.php index df2ad0b9..a7e1d43f 100644 --- a/code/CMSMain.php +++ b/code/CMSMain.php @@ -381,8 +381,8 @@ JS; if(is_numeric($parent)) $parentObj = DataObject::get_by_id("SiteTree", $parent); if(!$parentObj || !$parentObj->ID) $parent = 0; - $p = $this->getNewItem("new-$className-$parent".$suffix ); - // $p->write(); + $p = $this->getNewItem("new-$className-$parent".$suffix, false); + $p->write(); $p->CheckedPublicationDifferences = $p->AddedToStage = true; return $this->returnItemToUser($p);