BUGFIX AssetAdmin root navigation (fixes #7448)

Return a new object instance rather than relying on singleton(),
which might've been modified elsewhere, and have a non-zero ID/ParentID.
This commit is contained in:
Ingo Schommer 2012-06-14 09:42:55 +02:00
parent f94f03defe
commit eaf05a6a7c
1 changed files with 1 additions and 1 deletions

View File

@ -462,7 +462,7 @@ JS
if($id && is_numeric($id) && $id > 0) {
return DataObject::get_by_id('Folder', $id);
} else {
return singleton('Folder');
return new Folder();
}
}