From db0184841709b86f204c06c314d04a5beb18497a Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Thu, 9 Jul 2009 05:41:00 +0000 Subject: [PATCH] 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 --- code/AssetTableField.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/AssetTableField.php b/code/AssetTableField.php index 45e74ea9..3faa2383 100755 --- a/code/AssetTableField.php +++ b/code/AssetTableField.php @@ -36,6 +36,12 @@ class AssetTableField extends ComplexTableField { } $this->sourceFilter = '(' . implode(' OR ', $searchFilters) . ')'; $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';