Commit 49c18498ef7635c90c98da1b9da560a9422eef31

Authored by Megan Watson
1 parent 7a644fe8

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.

Committed by: Megan Watson
Reviewed by: Conrad Vermeulen 



git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@9470 c91229c3-7414-0410-bfa2-8a42b809f60b
lib/actions/bulkaction.php
... ... @@ -492,7 +492,7 @@ class KTBulkAction extends KTStandardDispatcher {
492 492 break;
493 493 case 'search2':
494 494 $sTargetUrl = KTBrowseUtil::getSearchResultURL();
495   - $sAction = 'searchResults';
  495 + $sAction = 'refresh';
496 496 break;
497 497 }
498 498  
... ...
search2.php
... ... @@ -274,6 +274,14 @@ class SearchDispatcher extends KTStandardDispatcher {
274 274 redirect(KTUtil::kt_url().'/dashboard.php');
275 275 }
276 276  
  277 + function do_refresh(){
  278 + // Get query from session
  279 + $query = $_SESSION['search2_query'];
  280 +
  281 + $this->processQuery($query);
  282 + $this->redirectTo('searchResults');
  283 + }
  284 +
277 285 /**
278 286 * Processes a query sent by HTTP POST in searchQuery.
279 287 *
... ...