From 40e3f96ce842f9193ca26af937ddd864e2c493d8 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 21 Nov 2009 03:14:56 +0000 Subject: [PATCH] MINOR PHP Notice in CMSMain git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92704 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/CMSMain.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/CMSMain.php b/code/CMSMain.php index 82bc5004..a5ac0852 100755 --- a/code/CMSMain.php +++ b/code/CMSMain.php @@ -431,7 +431,7 @@ JS; if($parentObj && !$parentObj->canAddChildren()) return Security::permissionFailure($this); if(!singleton($className)->canCreate()) return Security::permissionFailure($this); - $p = $this->getNewItem("new-$className-$parent".$suffix, false); + $p = $this->getNewItem("new-$className-$parentID".$suffix, false); $p->Locale = $data['Locale']; $p->write();