[Rt-commit] [rtir] 01/01: fix CreateTicketInQueue not working for RT Queues and sometimes having two slashes in URL
Dustin Graves
dustin at bestpractical.com
Mon Feb 8 19:01:28 EST 2016
This is an automated email from the git hooks/post-receive script.
dustin pushed a commit to branch 3.4/fix-new-ticket-general-redirect-loop
in repository rtir.
commit e1bc70a9078bfdbc97b3675cf545679dfc2ccacd
Author: Dustin Graves <dustin at bestpractical.com>
Date: Mon Feb 8 23:56:21 2016 +0000
fix CreateTicketInQueue not working for RT Queues and sometimes having two slashes in URL
Fixes: I#31526
---
html/RTIR/Elements/CreateTicketInQueue | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/html/RTIR/Elements/CreateTicketInQueue b/html/RTIR/Elements/CreateTicketInQueue
index 455dcc1..ea02d91 100644
--- a/html/RTIR/Elements/CreateTicketInQueue
+++ b/html/RTIR/Elements/CreateTicketInQueue
@@ -45,7 +45,7 @@
%# those contributions and any derivatives thereof.
%#
%# END BPS TAGGED BLOCK }}}
-<form action="<% RT->Config->Get('WebPath') %><% $SendTo %>" name="CreateTicketInQueue" id="CreateTicketInQueue" \
+<form action="<% $form_action %>" name="CreateTicketInQueue" id="CreateTicketInQueue" \
% $m->callback(CallbackName => 'InFormElement');
>
% my $button_start = '<input type="submit" class="button" value="';
@@ -59,6 +59,8 @@ $SendTo => undef
</%ARGS>
<%init>
if (!defined $SendTo) {
- $SendTo = RT::IR->HREFTo('/Create.html');
+ $SendTo = '/Ticket/Create.html';
}
+my $form_action = RT->Config->Get('WebPath') . $SendTo;
+$form_action =~ s/\/\//\//g;
</%init>
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the rt-commit
mailing list