[html-formfu] Extremly simple patch to HTML::FormFu::Model::DBIC

Carl Franks fireartist at gmail.com
Thu Apr 10 13:44:09 BST 2008


On 07/04/2008, Alex Povolotsky <tarkhil at over.ru> wrote:
> Zbigniew Lukasiak wrote:

> > - run svn diff > yourpatch.diff
> >
>  Index: lib/HTML/FormFu/Model/DBIC.pm
> ===================================================================
>  --- lib/HTML/FormFu/Model/DBIC.pm       (revision 990)
>  +++ lib/HTML/FormFu/Model/DBIC.pm       (working copy)
>  @@ -160,7 +160,7 @@
>                               my $info =
> $dbic->result_source->relationship_info($name);
>                 if ( !defined $info or $info->{attrs}{accessor} eq 'multi' )
> {
>  -                    my @defaults =
> $dbic->$name->get_column($col)->all;
>  +                    my @defaults =
> $dbic->$name->get_column('me.'.$col)->all;
>                     $field->default( \@defaults );
>                 }
>             }
>
>
>  Here it is.

cool - but can you also run the 'svn add' command on your new test
files(s) so that they also get included in the patch file?

we're almost there... ;)

Thanks,
Carl



More information about the HTML-FormFu mailing list