From 2b99e456276a545812e0313e86a77e501cd32748 Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Thu, 11 Mar 2010 02:43:47 +0000 Subject: [PATCH] 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 --- code/AssetAdmin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {