mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
BUGFIX: Fixed notice level error with folder ID
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@100858 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
b033c1839c
commit
2b99e45627
@ -196,7 +196,7 @@ JS
|
||||
}
|
||||
$processedData = array_reverse($processedData);
|
||||
|
||||
if($data['ID'] && $data['ID'] != 'root') $folder = DataObject::get_by_id("Folder", $data['ID']);
|
||||
if($data['FolderID'] && $data['FolderID'] != '') $folder = DataObject::get_by_id("Folder", $data['FolderID']);
|
||||
else $folder = singleton('Folder');
|
||||
|
||||
foreach($processedFiles as $filePostId => $tmpFile) {
|
||||
|
Loading…
Reference in New Issue
Block a user