[Rt-commit] r5330 - in rtir/branches/1.9-EXPERIMENTAL: .
ruz at bestpractical.com
ruz at bestpractical.com
Fri Jun 2 21:40:27 EDT 2006
Author: ruz
Date: Fri Jun 2 21:40:25 2006
New Revision: 5330
Added:
rtir/branches/1.9-EXPERIMENTAL/html/Callbacks/RTIR/Ticket/Create.html/
rtir/branches/1.9-EXPERIMENTAL/html/Callbacks/RTIR/Ticket/Create.html/Default
Modified:
rtir/branches/1.9-EXPERIMENTAL/ (props changed)
Log:
r1451 at cubic-pc: cubic | 2006-06-03 05:45:02 +0400
* redirect user to RTIR custom create page if he tries to create ticket
in a RTIR queue from RT interface
Added: rtir/branches/1.9-EXPERIMENTAL/html/Callbacks/RTIR/Ticket/Create.html/Default
==============================================================================
--- (empty file)
+++ rtir/branches/1.9-EXPERIMENTAL/html/Callbacks/RTIR/Ticket/Create.html/Default Fri Jun 2 21:40:25 2006
@@ -0,0 +1,10 @@
+<%INIT>
+return unless $QueueObj && $QueueObj->id;
+return unless $QueueObj->Name =~ /^(Incidents|Incident Reports|Investigations|Blocks)$/i;
+$m->subexec( '/RTIR/Create.html', %$ARGSRef, Queue => $QueueObj->Name );
+$m->abort;
+</%INIT>
+<%ARGS>
+$QueueObj => undef
+$ARGSRef => {}
+</%ARGS>
More information about the Rt-commit
mailing list