mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
BUGFIX Don't filter AssetAdmin list view when showing detail view (fixes #7408)
This commit is contained in:
parent
63467b0cb5
commit
8b8de0564c
@ -91,6 +91,13 @@ JS
|
|||||||
$params = $this->request->requestVar('q');
|
$params = $this->request->requestVar('q');
|
||||||
$list = $context->getResults($params);
|
$list = $context->getResults($params);
|
||||||
|
|
||||||
|
// Don't filter list when a detail view is requested,
|
||||||
|
// to avoid edge cases where the filtered list wouldn't contain the requested
|
||||||
|
// record due to faulty session state (current folder not always encoded in URL, see #7408).
|
||||||
|
if($this->request->param('ID') == 'field') {
|
||||||
|
return $list;
|
||||||
|
}
|
||||||
|
|
||||||
// Re-add previously removed "Name" filter as combined filter
|
// Re-add previously removed "Name" filter as combined filter
|
||||||
// TODO Replace with composite SearchFilter once that API exists
|
// TODO Replace with composite SearchFilter once that API exists
|
||||||
if(isset($params['Name'])) {
|
if(isset($params['Name'])) {
|
||||||
|
Loading…
Reference in New Issue
Block a user