[Rt-commit] r18838 - rt/3.999/branches/datetime/lib/RT/Model

sartak at bestpractical.com sartak at bestpractical.com
Wed Mar 18 13:38:16 EDT 2009


Author: sartak
Date: Wed Mar 18 13:38:16 2009
New Revision: 18838

Modified:
   rt/3.999/branches/datetime/lib/RT/Model/Ticket.pm

Log:
$Resolved -> $resolved

Modified: rt/3.999/branches/datetime/lib/RT/Model/Ticket.pm
==============================================================================
--- rt/3.999/branches/datetime/lib/RT/Model/Ticket.pm	(original)
+++ rt/3.999/branches/datetime/lib/RT/Model/Ticket.pm	Wed Mar 18 13:38:16 2009
@@ -431,9 +431,9 @@
         $started->set_to_now;
     }
 
-    my $Resolved = RT::Date->new();
+    my $resolved = RT::Date->new();
     if ( defined $args{'resolved'} ) {
-        $Resolved->set( format => 'ISO', value => $args{'resolved'} );
+        $resolved->set( format => 'ISO', value => $args{'resolved'} );
     }
 
     my $told = RT::Date->new();
@@ -445,7 +445,7 @@
     #If the status is an inactive status, set the resolved date
     elsif ( $queue_obj->status_schema->is_inactive( $args{'status'} ) ) {
         Jifty->log->debug( "Got a " . $args{'status'} . "(inactive) ticket with undefined resolved date. Setting to now." );
-        $Resolved->set_to_now;
+        $resolved->set_to_now;
     }
 
     # }}}
@@ -542,7 +542,7 @@
         type             => $args{'type'},
         starts           => $starts->iso,
         started          => $started->iso,
-        resolved         => $Resolved->iso,
+        resolved         => $resolved->iso,
         told             => $told->iso,
         due              => $due->iso
     );


More information about the Rt-commit mailing list