[html-formfu] DBIx-Class-HTML-FormFu nested-params

Mario Minati mario.minati at googlemail.com
Tue Nov 6 21:26:23 GMT 2007


On Tuesday 06 November 2007 10:13:04 Carl Franks wrote:
> 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

BTW:
I can confirm now that it's working in my app, at least in that part that I've 
moved to the new nested_base parameter.

Greets,
Mario



More information about the HTML-FormFu mailing list