BUGFIX AssetAdmin bugs out when trying to find Folders with ID = 0 when in /assets/

This commit is contained in:
Stig Lindqvist 2012-02-21 16:31:49 +13:00
parent 82748a0873
commit c5a1d69a39

View File

@ -481,11 +481,14 @@ class Folder extends File {
$addFolderBtn
),
$gridField,
new HiddenField("ID"),
new HiddenField("DestFolderID")
)
)
);
// If we running in singleton mode, don't add ID with value 0, it borks ORM queries
if($this->ID) {
$fields->addFieldToTab('Root.listview', new HiddenField("ID"));
}
$actionsComposite->addExtraClass('cms-actions-row');