my ($obj) = @{$r->objects || []};
if ($obj) {
# We have something to edit
my ($obj) = @{$r->objects || []};
if ($obj) {
# We have something to edit
- $obj->update_from_cgi($h);
+ $obj->update_from_cgi($h => {
+ required => $r->{config}{$r->{table}}{required_cols} || [],
+ });
- $obj = $self->create_from_cgi($h);
+ $obj = $self->create_from_cgi($h => {
+ required => $r->{config}{$r->{table}}{required_cols} || [],
+ });
$creating++;
}
if (my %errors = $obj->cgi_update_errors) {
$creating++;
}
if (my %errors = $obj->cgi_update_errors) {