[Catalyst] "update_from_form" and empty fields
Ken Youens-Clark
kyclark at gmail.com
Fri Nov 18 21:27:14 CET 2005
On Nov 18, 2005, at 2:18 PM, Andy Grundman wrote:
>> My version of Class::DBI::FromForm is 0.03, so it looks like I do
>> need to set the "missing_optional_valid => 1" for OK, so ... how
>> do I do that? I tried this:
>> $c->stash->{'item'}->update_from_form($c->form
>> (missing_optional_valid => 1));
>
> It should be specified when you first call $c->form. For example:
>
> $c->form(
> required => [ ... ],
> optional => [ ... ],
> missing_optional_valid => 1,
> );
Ah, I see! I just did this:
$c->form(
optional => [ $item->columns('All') ],
missing_optional_valid => 1,
);
Does that look naive?
Thanks, Andy!
ky
More information about the Catalyst
mailing list