[Jifty-commit] r1144 - in jifty/trunk: lib/Jifty/Action/Record
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Fri Jun 2 13:48:34 EDT 2006
Author: seanmil
Date: Fri Jun 2 13:48:29 2006
New Revision: 1144
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Action/Record/Create.pm
Log:
r327 at pc102: sean | 2006-06-02 13:46:33 -0400
* Skip nonexistant columns when creating records
Modified: jifty/trunk/lib/Jifty/Action/Record/Create.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Action/Record/Create.pm (original)
+++ jifty/trunk/lib/Jifty/Action/Record/Create.pm Fri Jun 2 13:48:29 2006
@@ -58,6 +58,9 @@
my %values;
for (grep { defined $self->argument_value($_) } $self->argument_names) {
+ # Skip nonexistent fields
+ next unless $self->record->column($_);
+
$values{$_} = $self->argument_value($_);
if (ref $values{$_} eq "Fh") { # CGI.pm's "lightweight filehandle class"
local $/;
More information about the Jifty-commit
mailing list