mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX Ensure that the DataList is being used correctly when applying filters in HtmlEditorField and Hierarchy
This commit is contained in:
parent
a9c7c69289
commit
538bcdc74d
@ -742,8 +742,10 @@ class HtmlEditorField_Toolbar extends RequestHandler {
|
||||
$files = File::get()->where(implode(' OR ', $wheres));
|
||||
|
||||
// Limit by folder (if required)
|
||||
if($parentID) $files->filter('ParentID', $parentID);
|
||||
|
||||
if($parentID) {
|
||||
$files = $files->filter('ParentID', $parentID);
|
||||
}
|
||||
|
||||
return $files;
|
||||
}
|
||||
|
||||
|
@ -591,7 +591,7 @@ class Hierarchy extends DataExtension {
|
||||
|
||||
$ids = $stageChildren->column("ID");
|
||||
if($ids) {
|
||||
$children->where("\"$baseClass\".\"ID\" NOT IN (" . implode(',',$ids) . ")");
|
||||
$children = $children->where("\"$baseClass\".\"ID\" NOT IN (" . implode(',',$ids) . ")");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user