[html-formfu] DBIx-Class-HTML-FormFu nested-params
Carl Franks
fireartist at gmail.com
Tue Nov 6 09:13:04 GMT 2007
On 05/11/2007, Mario Minati <mario.minati at googlemail.com> wrote:
>
> I found a bug in populate_from_formfu
>
> if ( $checkbox{$col} && !defined $value && !$is_nullable ) {
> $dbic->$col( $col_info->{default_value} );
> }
> elsif ( defined $value || $checkbox{$col} ) {
> $dbic->$col($value);
> }
>
> It needs to be
> $checkbox{ $field->nested_name }
> instead, which will only work if we sort out $field == undef before.
>
> Is
> next unless defined $field;
> ok?
I've fixed this too, and added a test - thanks
Carl
More information about the HTML-FormFu
mailing list