From 49c18498ef7635c90c98da1b9da560a9422eef31 Mon Sep 17 00:00:00 2001 From: Megan Watson Date: Fri, 3 Oct 2008 12:34:48 +0000 Subject: [PATCH] KTS-3757 "After a Bulk action was performed on folders in the Search results pane/view the user is returned to the original view where the folders search is shown in its previous state." Fixed. On completing the bulk action the return url calls refresh which repeats the search. --- lib/actions/bulkaction.php | 2 +- search2.php | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/actions/bulkaction.php b/lib/actions/bulkaction.php index 7c81d57..c3575cc 100644 --- a/lib/actions/bulkaction.php +++ b/lib/actions/bulkaction.php @@ -492,7 +492,7 @@ class KTBulkAction extends KTStandardDispatcher { break; case 'search2': $sTargetUrl = KTBrowseUtil::getSearchResultURL(); - $sAction = 'searchResults'; + $sAction = 'refresh'; break; } diff --git a/search2.php b/search2.php index 63b5378..6ec3162 100644 --- a/search2.php +++ b/search2.php @@ -274,6 +274,14 @@ class SearchDispatcher extends KTStandardDispatcher { redirect(KTUtil::kt_url().'/dashboard.php'); } + function do_refresh(){ + // Get query from session + $query = $_SESSION['search2_query']; + + $this->processQuery($query); + $this->redirectTo('searchResults'); + } + /** * Processes a query sent by HTTP POST in searchQuery. * -- libgit2 0.21.4