[Rt-commit] [rtir] 22/24: Switch incident display pages to use lifecycles

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

    Switch incident display pages to use lifecycles
---
 html/RTIR/Incident/Display.html | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/html/RTIR/Incident/Display.html b/html/RTIR/Incident/Display.html
index a692742..7e7a26c 100644
--- a/html/RTIR/Incident/Display.html
+++ b/html/RTIR/Incident/Display.html
@@ -111,10 +111,10 @@
 </td><td class="boxcontainer" valign="top">
 % $m->callback( %ARGS, Ticket => $TicketObj, CallbackName => 'RightColumnStart' );
 
-% foreach my $queue ( 'Incident Reports', 'Investigations', 'Blocks' ) {
+% foreach my $lifecycle ( 'incident_reports', 'investigations', 'blocks' ) {
 <& /RTIR/Incident/Elements/ShowChildren,
     IncidentObj => $TicketObj,
-    Queue       => $queue,
+    Lifecycle   => $lifecycle
 &>
 % }
 
@@ -213,7 +213,7 @@ my $new_ticket = 0;
 if ( $id eq 'new' ) {
     my $QueueObj = RT::Queue->new( $session{'CurrentUser'} );
     $QueueObj->Load( $Queue ) || Abort(loc("Couldn't load queue."));
-    unless( $QueueObj->Name eq 'Incidents' ) {
+    unless( $QueueObj->Lifecycle eq 'incidents' ) {
         return $m->comp('/RTIR/Display.html', %ARGS );
     }
     ($TicketObj, @results) = CreateTicket( %ARGS );
@@ -227,7 +227,7 @@ $m->callback(CallbackName => 'ProcessArguments',
             ARGSRef => \%ARGS,  
             Actions => \@results);
 
-unless( $TicketObj->QueueObj->Name eq 'Incidents' ) {
+unless( $TicketObj->QueueObj->Lifecycle eq 'incidents' ) {
     return $m->comp('/RTIR/Display.html', %ARGS );
 }
 $ARGS{'id'} = $id = $TicketObj->Id;

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


More information about the rt-commit mailing list