Open GoogleCodeExporter opened 8 years ago
What steps will reproduce the problem? 1. Extending FileClass 2. Using DataObjectManager' AssetManager What is the expected output? What do you see instead? An SQL error What version of the product are you using? On what operating system? 513 Please provide any additional information below. Index: dataobject_manager/code/AssetManagerFolder.php =================================================================== --- dataobject_manager/code/AssetManagerFolder.php (revision 513) +++ dataobject_manager/code/AssetManagerFolder.php (working copy) @@ -15,7 +15,7 @@ 'Title' => 30, 'Filename' => 70 )); - $folder_filter = "(Classname != 'Folder' AND ParentID = ".$this->owner->ID.")"; + $folder_filter = "(\"File\".ClassName != 'Folder' AND ParentID = ".$this->owner->ID.")"; $filter = $a->sourceFilter ? "({$a->sourceFilter}) AND $folder_filter" : $folder_filter; $a->setSourceFilter($filter); $a->setParentClass("Folder"); Index: dataobject_manager/code/AssetManager.php =================================================================== --- dataobject_manager/code/AssetManager.php (revision 513) +++ dataobject_manager/code/AssetManager.php (working copy) @@ -24,7 +24,7 @@ $fields->push(new SimpleTreeDropdownField('ParentID','Folder',"Folder")); $fields->push(new HiddenField('ID','',$controller->ID)); - parent::__construct($controller, $name, $sourceClass, null, $headings, $fields, "Classname != 'Folder'"); + parent::__construct($controller, $name, $sourceClass, null, $headings, $fields, "\"File\".ClassName != 'Folder'"); }
Original issue reported on code.google.com by cleggm...@gmail.com on 19 Nov 2010 at 9:54
cleggm...@gmail.com
Original issue reported on code.google.com by
cleggm...@gmail.com
on 19 Nov 2010 at 9:54