Permalink
Browse files

MINOR PHP Notice in CMSMain

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92704 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent 9794b83 commit 40e3f96ce842f9193ca26af937ddd864e2c493d8 @chillu chillu committed Nov 21, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 code/CMSMain.php
View
@@ -431,7 +431,7 @@ public function addpage($data, $form) {
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();

0 comments on commit 40e3f96

Please sign in to comment.