[Jifty-commit] r671 -
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Tue Mar 7 02:38:37 EST 2006
Author: jesse
Date: Tue Mar 7 02:38:36 2006
New Revision: 671
Modified:
/ (props changed)
jifty/trunk/lib/Jifty/Action/Record/Update.pm
Log:
r25628 at truegrounds: jesse | 2006-03-06 23:38:26 -0800
* Flatten compared values to scalars on update, so that, say, datetimes get scalarized for comparison. Yes, this is a nasty hack
Modified: jifty/trunk/lib/Jifty/Action/Record/Update.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Action/Record/Update.pm (original)
+++ jifty/trunk/lib/Jifty/Action/Record/Update.pm Tue Mar 7 02:38:36 2006
@@ -94,7 +94,8 @@
$old = $old->id if UNIVERSAL::isa( $old, "Jifty::Record" );
# if both the new and old values are defined and equal, we don't want to change em
- next if ( defined $old and defined $self->argument_value($field) and $old eq $self->argument_value($field) );
+ # XXX TODO "$old" is a cheap hack to scalarize datetime objects
+ next if ( defined $old and defined $self->argument_value($field) and "$old" eq $self->argument_value($field) );
# If _both_ the values are ''
More information about the Jifty-commit
mailing list