[Jifty-commit] r748 - in jifty/trunk: lib/Jifty/Action/Record
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Mon Mar 27 20:36:02 EST 2006
Author: alexmv
Date: Mon Mar 27 20:36:01 2006
New Revision: 748
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Action/Record/Update.pm
Log:
r11906 at zoq-fot-pik: chmrr | 2006-03-27 20:35:52 -0500
* Skip file uploads if blank
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 Mon Mar 27 20:36:01 2006
@@ -91,6 +91,10 @@
if ( defined $column->type and ( $column->type =~ /^bool/i || $column->type =~ /^int/i )
and defined $value and $value eq '' );
+ # Skip file uploads if blank
+ next if lc $self->arguments->{$field}{render_as} eq "upload"
+ and (not defined $value or not ref $value);
+
if (ref $value eq "Fh") { # CGI.pm's "lightweight filehandle class"
local $/;
binmode $value;
More information about the Jifty-commit
mailing list