[Rt-commit] r6185 - in rt/branches/3.7-EXPERIMENTAL: .

ruz at bestpractical.com ruz at bestpractical.com
Wed Oct 11 17:23:07 EDT 2006


Author: ruz
Date: Wed Oct 11 17:23:06 2006
New Revision: 6185

Modified:
   rt/branches/3.7-EXPERIMENTAL/   (props changed)
   rt/branches/3.7-EXPERIMENTAL/lib/RT/Ticket_Overlay.pm

Log:
 r3926 at cubic-pc:  cubic | 2006-10-12 01:00:03 +0400
 * on ticket create if status not equal to new and started date
   is not defined then we set it to now to be consistent with
   logic in SetStatus


Modified: rt/branches/3.7-EXPERIMENTAL/lib/RT/Ticket_Overlay.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/lib/RT/Ticket_Overlay.pm	(original)
+++ rt/branches/3.7-EXPERIMENTAL/lib/RT/Ticket_Overlay.pm	Wed Oct 11 17:23:06 2006
@@ -454,6 +454,9 @@
     if ( defined $args{'Started'} ) {
         $Started->Set( Format => 'ISO', Value => $args{'Started'} );
     }
+    elsif ( $args{'Status'} ne 'new' ) {
+        $Starts->SetToNow;
+    }
 
     my $Resolved = new RT::Date( $self->CurrentUser );
     if ( defined $args{'Resolved'} ) {


More information about the Rt-commit mailing list