[Rt-commit] rt branch, 4.0/saved-search-context, updated. rt-4.0.1-222-gfbf59ae

Alex Vandiver alexmv at bestpractical.com
Thu Sep 15 18:58:04 EDT 2011


The branch, 4.0/saved-search-context has been updated
       via  fbf59ae2d3510b50b69e6fd0bb382f6cba5252b4 (commit)
      from  122daf694962626c9a41c9f7ac2f2b0e239eed22 (commit)

Summary of changes:
 share/html/Search/Build.html |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit fbf59ae2d3510b50b69e6fd0bb382f6cba5252b4
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Thu Sep 15 18:10:42 2011 -0400

    Preserve the saved search id on "Add these terms and Search"

diff --git a/share/html/Search/Build.html b/share/html/Search/Build.html
index 5522479..e23eb5a 100644
--- a/share/html/Search/Build.html
+++ b/share/html/Search/Build.html
@@ -296,7 +296,12 @@ $session{'CurrentSearchHash'} = {
 # Show the results, if we were asked.
 
 if ( $ARGS{'DoSearch'} ) {
-    my $redir_query_string = $m->comp('/Elements/QueryString', %query, SavedChartSearchId => $ARGS{'SavedChartSearchId'});
+    my $redir_query_string = $m->comp(
+        '/Elements/QueryString',
+        %query,
+        SavedChartSearchId => $ARGS{'SavedChartSearchId'},
+        SavedSearchId => $saved_search{'Id'},
+    );
     RT::Interface::Web::Redirect(RT->Config->Get('WebPath') . '/Search/Results.html?' . $redir_query_string);
     $m->abort;
 }

-----------------------------------------------------------------------


More information about the Rt-commit mailing list