mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 09:05:53 +00:00
MINOR PHP Notice in CMSMain
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92704 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
9794b8324b
commit
40e3f96ce8
@ -431,7 +431,7 @@ JS;
|
|||||||
if($parentObj && !$parentObj->canAddChildren()) return Security::permissionFailure($this);
|
if($parentObj && !$parentObj->canAddChildren()) return Security::permissionFailure($this);
|
||||||
if(!singleton($className)->canCreate()) 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->Locale = $data['Locale'];
|
||||||
$p->write();
|
$p->write();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user