[Rt-commit] [rtir] 04/06: Switch to HREFTo and add a comment about a callback's original intent
Jesse Vincent
jesse at bestpractical.com
Fri Mar 13 01:53:28 EDT 2015
This is an automated email from the git hooks/post-receive script.
jesse pushed a commit to branch 3.4/remove_old_constituencies
in repository rtir.
commit e90d4f8100cedcca8f9deaf7b3b158ccf5dde53e
Author: Jesse Vincent <jesse at bestpractical.com>
Date: Thu Mar 12 21:49:44 2015 -0700
Switch to HREFTo and add a comment about a callback's original intent
---
html/Callbacks/RTIR/Search/Results.html/Initial | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/html/Callbacks/RTIR/Search/Results.html/Initial b/html/Callbacks/RTIR/Search/Results.html/Initial
index 00a5e35..c973c8e 100644
--- a/html/Callbacks/RTIR/Search/Results.html/Initial
+++ b/html/Callbacks/RTIR/Search/Results.html/Initial
@@ -49,14 +49,19 @@
$ARGSRef => {}
</%ARGS>
<%INIT>
+
+# this callback redirects search results from a standard
+# RT search results page to the RTIR search results page
+# if it's actually a search for RTIR tickets.
+# XXX TODO: this may be obsolete
my ($our, @lifecycles) = RT::IR->OurQuery( $ARGSRef->{'Query'} );
return unless $our;
-RT::Interface::Web::Redirect( RT->Config->Get('WebURL') .'RTIR/Search/Results.html?'
+RT::Interface::Web::Redirect( RT::IR->HREFTo('Search/Results.html?'
. $m->comp(
'/Elements/QueryString',
%$ARGSRef,
@lifecycles == 1? (Lifecycle => $lifecycles[0]) : (Lifecycle => undef)
- )
+ ))
);
</%INIT>
\ No newline at end of file
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the rt-commit
mailing list