[Rt-commit] rt branch, 4.0/search-tabs, updated. rt-4.0.0rc6-41-g66f7bd7
Shawn Moore
sartak at bestpractical.com
Mon Mar 14 15:52:33 EDT 2011
The branch, 4.0/search-tabs has been updated
via 66f7bd7443b5fbb41108d4f90a95de2cf893712b (commit)
from 0848abad797c76ecc83bcbd99945daf8109cd9d3 (commit)
Summary of changes:
share/html/Elements/Tabs | 3 ++-
share/html/Search/Build.html | 3 +--
2 files changed, 3 insertions(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit 66f7bd7443b5fbb41108d4f90a95de2cf893712b
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Mon Mar 14 15:51:28 2011 -0400
Refactor away $m->notes into a parameter pass
diff --git a/share/html/Elements/Tabs b/share/html/Elements/Tabs
index e8fc3a0..134578e 100755
--- a/share/html/Elements/Tabs
+++ b/share/html/Elements/Tabs
@@ -591,7 +591,7 @@ my $build_admin_menu = sub {
}
}
- $args = "?" . ($m->notes('QueryString') || $query_string->(%query_args));
+ $args = "?" . ($QueryString || $query_string->(%query_args));
my $current_search_menu;
@@ -764,4 +764,5 @@ if ( $request_path !~ m{^/SelfService/} ) {
</%INIT>
<%ARGS>
$show_menu => 1
+$QueryString => ''
</%ARGS>
diff --git a/share/html/Search/Build.html b/share/html/Search/Build.html
index f34c280..91c254f 100644
--- a/share/html/Search/Build.html
+++ b/share/html/Search/Build.html
@@ -66,7 +66,7 @@
%# action does quote it (this breaks SQLite).
%#
<& /Elements/Header, Title => $title &>
-<& /Elements/Tabs &>
+<& /Elements/Tabs, QueryString => $QueryString &>
<form method="post" action="Build.html" name="BuildQuery" id="BuildQuery">
<input type="hidden" class="hidden" name="SavedSearchId" value="<% $saved_search{'Id'} %>" />
@@ -309,7 +309,6 @@ elsif ( $query{'Query'} ) {
$QueryString = $m->comp('/Elements/QueryString', %query );
}
-$m->notes(QueryString => $QueryString);
</%INIT>
<%ARGS>
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list