mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 09:05:53 +00:00
MINOR prevent exceptions when the wrong object type is passed to LeftAndMain
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@82488 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
f1ab64fb50
commit
56281b7f3e
@ -864,7 +864,8 @@ if(node && node.parentTreeNode) node.parentTreeNode.removeTreeNode(node);
|
||||
$('Form_EditForm').closeIfSetTo($id);
|
||||
JS;
|
||||
FormResponse::add($response);
|
||||
FormResponse::add($this->showSingleInstanceOnlyInCreateFieldJS($page));
|
||||
|
||||
if ($this instanceof LeftAndMain) FormResponse::add($this->showSingleInstanceOnlyInCreateFieldJS($page));
|
||||
return FormResponse::respond();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user