[Rt-commit] [rtir] 03/04: Further LifecycleObj instead of Lifecycle updates

Kevin Falcone falcone at bestpractical.com
Mon Apr 14 12:59:14 EDT 2014


This is an automated email from the git hooks/post-receive script.

falcone pushed a commit to branch 3.2/deprecated-warnings
in repository rtir.

commit e544dfbccc78236f931b8109caa2990886bfde44
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Mon Apr 14 11:10:42 2014 -0400

    Further LifecycleObj instead of Lifecycle updates
    
    This should be the final round of these if I've grepped properly.
---
 html/RTIR/Elements/ShowChildren     | 4 ++--
 html/RTIR/Incident/Reply/index.html | 2 +-
 lib/RT/IR.pm                        | 6 +++---
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/html/RTIR/Elements/ShowChildren b/html/RTIR/Elements/ShowChildren
index 7a66efb..006314b 100644
--- a/html/RTIR/Elements/ShowChildren
+++ b/html/RTIR/Elements/ShowChildren
@@ -46,7 +46,7 @@
 %#
 %# END BPS TAGGED BLOCK }}}
 % if( $ShowStatusesSelector ) {
-%   foreach my $s ( $QueueObj->Lifecycle->Valid ) {
+%   foreach my $s ( $QueueObj->LifecycleObj->Valid ) {
 %       my $checked = (grep { $_ eq $s } @Statuses)? 'checked': '';
 <input type="checkbox" name="Statuses" value="<% $s %>" <% $checked %> /> <% $s %>
 %   }
@@ -89,7 +89,7 @@ unless ( $QueueObj->id ) {
     return;
 }
 
- at Statuses = $QueueObj->Lifecycle->Valid('initial', 'active') unless @Statuses;
+ at Statuses = $QueueObj->LifecycleObj->Valid('initial', 'active') unless @Statuses;
 
 my $Type = RT::IR::TicketType( Queue => $Queue );
 
diff --git a/html/RTIR/Incident/Reply/index.html b/html/RTIR/Incident/Reply/index.html
index ca3253d..a86cad5 100644
--- a/html/RTIR/Incident/Reply/index.html
+++ b/html/RTIR/Incident/Reply/index.html
@@ -166,7 +166,7 @@ if ( $SubmitTicket && $gnupg_widget ) {
 if ( $SubmitTicket && !$checks_failure ) {
     $ARGS{'UpdateAttachments'} = delete $session{'Attachments'};
 
-    my $incident_cycle = $IncidentObj->QueueObj->Lifecycle;
+    my $incident_cycle = $IncidentObj->QueueObj->LifecycleObj;
     foreach my $Ticket ( @selected_children ) {
         my $id = $Ticket->id;
 
diff --git a/lib/RT/IR.pm b/lib/RT/IR.pm
index 980975d..0717339 100644
--- a/lib/RT/IR.pm
+++ b/lib/RT/IR.pm
@@ -435,10 +435,10 @@ sub MapStatus {
     foreach my $e ($from, $to) {
         if ( blessed $e ) {
             if ( $e->isa('RT::Queue') ) {
-                $e = $e->Lifecycle;
+                $e = $e->LifecycleObj;
             }
             elsif ( $e->isa('RT::Ticket') ) {
-                $e = $e->QueueObj->Lifecycle;
+                $e = $e->QueueObj->LifecycleObj;
             }
             elsif ( !$e->isa('RT::Lifecycle') ) {
                 $e = undef;
@@ -447,7 +447,7 @@ sub MapStatus {
         else {
             my $queue = RT::Queue->new( RT->SystemUser );
             $queue->Load( $e );
-            $e = $queue->Lifecycle;
+            $e = $queue->LifecycleObj;
         }
         return unless $e;
     }

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


More information about the rt-commit mailing list