[Rt-commit] [rtir] 10/10: Switch Incident creation from calling a component to redirecting

Jesse Vincent jesse at bestpractical.com
Thu Feb 26 19:25:50 EST 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 a8f18e7140345aa68a03992d788731ccacd8a582
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Thu Feb 26 16:25:12 2015 -0800

    Switch Incident creation from calling a component to redirecting
---
 html/RTIR/Split.html | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/html/RTIR/Split.html b/html/RTIR/Split.html
index 52088e1..259a69e 100644
--- a/html/RTIR/Split.html
+++ b/html/RTIR/Split.html
@@ -77,7 +77,9 @@ $m->callback(CallbackName => 'Initial', %ARGS, Ticket => $TicketObj);
 
 my $Type = RT::IR::TicketType( Ticket => $TicketObj );
 if ( $m->comp_exists("/RTIR/$Type/Split.html") ) {
-    return $m->comp( "/RTIR/$Type/Split.html", %ARGS );
+    RT::Interface::Web::Redirect(RT->Config->Get('WebURL')
+    . "/RTIR/$Type/Split.html?"
+    . $m->comp('/Elements/QueryString', %ARGS ));
 }
 
 </%INIT>

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the rt-commit mailing list