diff --git a/code/AssetAdmin.php b/code/AssetAdmin.php index cebcd874..5228b36d 100755 --- a/code/AssetAdmin.php +++ b/code/AssetAdmin.php @@ -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) {