BUGFIX Don't filter AssetAdmin list view when showing detail view (fixes #7408)

This commit is contained in:
Ingo Schommer 2012-06-05 13:42:38 +02:00
parent 63467b0cb5
commit 8b8de0564c

View File

@ -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'])) {