[Rt-commit] [rtir] 18/24: Interim hack to switch RTIR Create to use Lifecycle

Jesse Vincent jesse at bestpractical.com
Mon Feb 9 00:25:23 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 c209d028d62b695b739d80d71b072d5a50c7072d
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Sun Feb 8 19:38:19 2015 -0800

    Interim hack to switch RTIR Create to use Lifecycle
---
 html/RTIR/Create.html | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/html/RTIR/Create.html b/html/RTIR/Create.html
index 644dec3..ec61910 100644
--- a/html/RTIR/Create.html
+++ b/html/RTIR/Create.html
@@ -314,6 +314,13 @@
 </form>
 
 <%INIT>
+# XXX TODO remove this code that maps lifecycles to queues
+if ($Lifecycle && ! $Queue) {
+    $Queue=ucfirst($Lifecycle);
+    $Queue=~ s/_r/ R/;
+    $ARGS{'Queue'} = $Queue;
+}
+
 my %CFDefaults;
 $m->callback(
     CallbackName => 'Init', CallbackPage => '/Ticket/Create.html',
@@ -472,6 +479,7 @@ PageMenu->child( details => raw_html =>  q[<a href="#details" onclick="return sw
 
 <%ARGS>
 $Queue            => undef
+$Lifecycle        => undef
 @SkipNotification => ()
 
 $Subject          => undef

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


More information about the rt-commit mailing list