mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
#1576 - New pages are created in the database straight away
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@44147 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
71da10dc6b
commit
0b0eadaf1d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user