mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
BUGFIX Fixed FileSearch parameter in AssetTableField. Pagination of filtered search results and refresh of the tabular view after saving a popup wasn't working because the search parameter wasn't retained
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@81460 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
7147a863b8
commit
db01848417
@ -36,6 +36,12 @@ class AssetTableField extends ComplexTableField {
|
|||||||
}
|
}
|
||||||
$this->sourceFilter = '(' . implode(' OR ', $searchFilters) . ')';
|
$this->sourceFilter = '(' . implode(' OR ', $searchFilters) . ')';
|
||||||
$this->searchingFor = $_REQUEST['FileSearch'];
|
$this->searchingFor = $_REQUEST['FileSearch'];
|
||||||
|
|
||||||
|
// @todo Integrate search form more closely and don't rely on deprecated
|
||||||
|
// $extraLinkParams.
|
||||||
|
$this->extraLinkParams = array(
|
||||||
|
'FileSearch' => $SQL_search
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->sourceSort = 'Title';
|
$this->sourceSort = 'Title';
|
||||||
|
Loading…
Reference in New Issue
Block a user