[Rt-commit] rtir branch, 5.0/select-queue, repushed
Michel Rodriguez
michel at bestpractical.com
Fri Apr 10 16:29:54 EDT 2020
The branch 5.0/select-queue was deleted and repushed:
was cf2be079c23c8e2c92a6cc7b70cd277265c3d571
now 60678ed8a06aa5c4bb72fd293ee49a51b0c3a59e
1: cf2be079 ! 1: 60678ed8 Choose queue on ticket create page.
@@ -1,6 +1,8 @@
Author: michel <michel at bestpractical.com>
Choose queue on ticket create page.
+
+ The available queues are the RTIR queues.
diff --git a/html/RTIR/Create.html b/html/RTIR/Create.html
--- a/html/RTIR/Create.html
@@ -102,3 +104,23 @@
</div>
</div>
<div class="form-row">
+@@
+ </form>
+
+ <%INIT>
++
+ my %CFDefaults;
+ $m->callback(
+ CallbackName => 'Init', CallbackPage => '/Ticket/Create.html',
+@@
+ Abort( loc("Queue '[_1]' could not be loaded.", $ARGS{Queue}) );
+ }
+
+-
+-
++if( !RT::IR->IsIncidentQueue($QueueObj) ) {
++ RT::Interface::Web::Redirect(RT::IR->HREFTo( '/Create.html?' . $m->comp('/Elements/QueryString', %ARGS )));
++}
+
+ my $ticket = RT::Ticket->new($session{'CurrentUser'}); # empty ticket object
+
More information about the rt-commit
mailing list