[Rt-commit] rt branch, 4.2/sticky-simple-search, updated. rt-4.0.5-284-gbd7b51c
Kevin Falcone
falcone at bestpractical.com
Fri Aug 24 17:46:32 EDT 2012
The branch, 4.2/sticky-simple-search has been updated
via bd7b51cc1ea151c83c67386f3b68aa29a5460763 (commit)
from 06756fc05b3637d7dc37bcab408778921075061e (commit)
Summary of changes:
share/html/Elements/SimpleSearch | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
- Log -----------------------------------------------------------------
commit bd7b51cc1ea151c83c67386f3b68aa29a5460763
Author: Kevin Falcone <falcone at bestpractical.com>
Date: Fri Aug 24 17:23:47 2012 -0400
Switch to using DECODED_ARGS
diff --git a/share/html/Elements/SimpleSearch b/share/html/Elements/SimpleSearch
index 588e572..b8f881b 100755
--- a/share/html/Elements/SimpleSearch
+++ b/share/html/Elements/SimpleSearch
@@ -49,14 +49,7 @@
<input size="12" name="q" accesskey="0" class="field" value="<% $value %>" placeholder="<% loc('Search') %>..." />
</form>
<%init>
-my $value = '';
-
-# The current simple search is sticky
-if (defined $m->request_args->{q}) {
- my %request = ( q => $m->request_args->{q} );
- RT::Interface::Web::DecodeARGS(\%request);
- $value = $request{q};
-}
+my $value = defined $DECODED_ARGS->{q} ? $DECODED_ARGS->{q} : '';
</%init>
<%ARGS>
$SendTo => '/Search/Simple.html'
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list