mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
BUGFIX Fixed error if clicking the root of a sitetree in the CMS - affected the AssetAdmin and SecurityAdmin sections
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@75023 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
74fad6a1d0
commit
cd5ed8515d
@ -844,7 +844,7 @@ JS;
|
||||
}
|
||||
|
||||
public function EditForm() {
|
||||
if(isset($_REQUEST['ID'])) {
|
||||
if(isset($_REQUEST['ID']) && is_numeric($_REQUEST['ID'])) {
|
||||
$record = DataObject::get_by_id($this->stat('tree_class'), $_REQUEST['ID']);
|
||||
} else {
|
||||
$record = $this->CurrentPage();
|
||||
|
Loading…
Reference in New Issue
Block a user