[Rt-commit] r6187 - in rt/branches/3.7-EXPERIMENTAL: .
ruz at bestpractical.com
ruz at bestpractical.com
Wed Oct 11 17:23:32 EDT 2006
Author: ruz
Date: Wed Oct 11 17:23:29 2006
New Revision: 6187
Modified:
rt/branches/3.7-EXPERIMENTAL/ (props changed)
rt/branches/3.7-EXPERIMENTAL/lib/RT/Ticket_Overlay.pm
Log:
r3928 at cubic-pc: cubic | 2006-10-12 01:04:56 +0400
* $self->Status =~ /new/ isn't good way to check equality
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:29 2006
@@ -3261,7 +3261,7 @@
$now->SetToNow();
#If we're changing the status from new, record that we've started
- if ( ( $self->Status =~ /new/ ) && ( $args{Status} ne 'new' ) ) {
+ if ( $self->Status eq 'new' && $args{Status} ne 'new' ) {
#Set the Started time to "now"
$self->_Set( Field => 'Started',
More information about the Rt-commit
mailing list