[Rt-commit] r18498 - rt/3.999/trunk/lib/RT
falcone at bestpractical.com
falcone at bestpractical.com
Fri Feb 20 20:02:57 EST 2009
Author: falcone
Date: Fri Feb 20 20:02:57 2009
New Revision: 18498
Modified:
rt/3.999/trunk/lib/RT/Record.pm
Log:
* this failed to correctly compare 0 to 0
Modified: rt/3.999/trunk/lib/RT/Record.pm
==============================================================================
--- rt/3.999/trunk/lib/RT/Record.pm (original)
+++ rt/3.999/trunk/lib/RT/Record.pm Fri Feb 20 20:02:57 2009
@@ -727,7 +727,8 @@
my $object = $attribute . "_obj";
next if ( $self->can($object) && $self->$object->name eq $value );
};
- next if ( $value eq ( $self->$attribute() || '' ) );
+ my $current_value = $self->$attribute();
+ next if ( $value eq ( defined $current_value ? $current_value : '' ) );
my $method = "set_$attribute";
my ( $code, $msg ) = $self->$method($value);
my ($prefix) = ref($self) =~ /RT(?:.*)::(\w+)/;
More information about the Rt-commit
mailing list