[Rt-commit] [rtir] 06/22: Make it possible to create an rtir ticket with a queue, not just with a lifecycle
Jesse Vincent
jesse at bestpractical.com
Sun Mar 29 02:50:57 EDT 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 c4a14f189823a2f8f104d6f8aba9a12cc03a8fbb
Author: Jesse Vincent <jesse at bestpractical.com>
Date: Sat Mar 28 16:34:32 2015 -0700
Make it possible to create an rtir ticket with a queue, not just with
a lifecycle
---
html/RTIR/Create.html | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/html/RTIR/Create.html b/html/RTIR/Create.html
index 685d02e..c630650 100644
--- a/html/RTIR/Create.html
+++ b/html/RTIR/Create.html
@@ -341,7 +341,15 @@ $m->callback(
);
my $QueueObj = RT::Queue->new( $session{'CurrentUser'} );
-$QueueObj->Load( $Queue ) || Abort( loc("Queue could not be loaded.") );
+$QueueObj->Load( $Queue );
+
+if (!$QueueObj->Name) {
+ Abort( loc("Queue '[_1]' could not be loaded.",$Queue) );
+ }
+
+if ($Queue && !$Lifecycle) {
+ $Lifecycle = $QueueObj->Lifecycle;
+}
my $ticket = RT::Ticket->new($session{'CurrentUser'}); # empty ticket object
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the rt-commit
mailing list