[Rt-commit] rtir branch, 4.0/rtir-search-redirect-option, created. 4.0.0-58-gf7fea79
Jim Brandt
jbrandt at bestpractical.com
Thu Aug 31 16:20:11 EDT 2017
The branch, 4.0/rtir-search-redirect-option has been created
at f7fea79fffa632238244d0185b69f4495f0d14f4 (commit)
- Log -----------------------------------------------------------------
commit f7fea79fffa632238244d0185b69f4495f0d14f4
Author: Jim Brandt <jbrandt at bestpractical.com>
Date: Thu Aug 31 16:16:19 2017 -0400
Make the RTIR search redirect configurable
Some RTIR users prefer to use the RT search interface when
searching for tickets. Provide a configuration option to disable
the automatic redirect from the RT search to the RTIR search.
diff --git a/etc/RTIR_Config.pm b/etc/RTIR_Config.pm
index dfeb340..b053447 100644
--- a/etc/RTIR_Config.pm
+++ b/etc/RTIR_Config.pm
@@ -289,6 +289,16 @@ Home page.
Set($RTIR_RedirectOnLogin, 1);
+=item C<$RTIR_RedirectOnSearch>
+
+If set to a true value, searches initiated on the RT search page
+that contain RTIR-related queues will redirect to the RTIR search
+page. The default is true.
+
+=cut
+
+Set($RTIR_RedirectOnSearch, 1);
+
=item DefaultQueue
By default, RT does not specify a Default Queue.
diff --git a/html/Callbacks/RTIR/Search/Results.html/Initial b/html/Callbacks/RTIR/Search/Results.html/Initial
index 281cfcd..d19634b 100644
--- a/html/Callbacks/RTIR/Search/Results.html/Initial
+++ b/html/Callbacks/RTIR/Search/Results.html/Initial
@@ -49,6 +49,7 @@
$ARGSRef => {}
</%ARGS>
<%INIT>
+return unless RT->Config->Get('RTIR_RedirectOnSearch');
# this callback redirects search results from a standard
# RT search results page to the RTIR search results page
-----------------------------------------------------------------------
More information about the rt-commit
mailing list