[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.6-31-gff2224d
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Mon Oct 26 03:06:58 EDT 2009
The branch, 3.8-trunk has been updated
via ff2224d68054e3e0e1d5383992a7b3dc8094c5bb (commit)
from 3d974f472ede8eee5b5225204d6b0bd9fc28c073 (commit)
Summary of changes:
share/html/Widgets/SavedSearch | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit ff2224d68054e3e0e1d5383992a7b3dc8094c5bb
Author: sunnavy <sunnavy at bestpractical.com>
Date: Mon Oct 26 14:49:49 2009 +0800
do *not* show the old saved search in /Search/Build.html if one loaded a saved search in /Search/Chart.html
diff --git a/share/html/Widgets/SavedSearch b/share/html/Widgets/SavedSearch
index 385351c..784cf65 100644
--- a/share/html/Widgets/SavedSearch
+++ b/share/html/Widgets/SavedSearch
@@ -68,6 +68,14 @@ if ( my ( $container_object, $search_id ) = _parse_saved_search( $args->{'SavedS
$self->{SearchId} = $args->{'SavedSearchLoad'};
$self->{CurrentSearch}{Object} = $search;
$args->{$_} = $search->SubValue($_) for @{ $self->{SearchFields} };
+# saved search in /Search/Chart.html is different from /Search/Build.html
+# the former is of type 'Chart', while the latter is of type 'Ticket'.
+# After loading a saved search from the former after loading one from the
+# latter, accessing /Search/Build.html will still show the old one, so we
+# need to delete $session{CurrentSearchHash} to let it not show the old one.
+# of course, the new one should not be shown there either because it's of
+# different type
+ delete $session{'CurrentSearchHash'};
}
# look for the current one in the available saved searches
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list