[Jifty-commit] r2202 - in jifty/trunk: lib/Jifty/Action/Record
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Sat Nov 25 23:19:54 EST 2006
Author: jesse
Date: Sat Nov 25 23:19:53 2006
New Revision: 2202
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Action/Record/Update.pm
Log:
r45446 at pinglin: jesse | 2006-11-25 23:19:43 -0500
Modified Jifty::Action::Record::Update so that empty strings for integer and
boolean columns will be interpreted as NULLs. This may break apps that
assume that an empty value string will be a no-op.
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 Sat Nov 25 23:19:53 2006
@@ -98,9 +98,9 @@
# Grab the value
my $value = $self->argument_value($field);
- # Boolean and integer fields should be skipped if blank.
+ # Boolean and integer fields should be set to NULL if blank.
# (This logic should be moved into SB or something.)
- next
+ $value = undef
if ( defined $column->type and ( $column->type =~ /^bool/i || $column->type =~ /^int/i )
and defined $value and $value eq '' );
More information about the Jifty-commit
mailing list