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

Zbigniew Lukasiak zzbbyy at gmail.com
Wed Apr 2 10:02:44 BST 2008


On Wed, Apr 2, 2008 at 10:48 AM, Alex Povolotsky <tarkhil at over.ru> wrote:
> solving a problem with many_to_many, defaults_from_model and store_to_model
> at once.
>
>  --- DBIC.pm~    2008-04-01 15:56:34.000000000 +0400
>  +++ DBIC.pm     2008-04-02 12:45:10.000000000 +0400
>  @@ -181,7 +181,7 @@
>                 = exists $field->db->{default_column}
>                 ? $field->db->{default_column}
>                 : $dbic->$name->result_source->primary_columns;
>  -            my @defaults = $dbic->$name->get_column($col)->all;
>  +            my @defaults = $dbic->$name->get_column('me.'.$col)->all;
>             $field->default( \@defaults );
>       }
>     }
>
>
>  I do not know if it is a HTML::FormFu fail, or DBIx::Class fail; but I've
> found a place to fix it. It works.

I think that would be OK - but let's see what Carl will say.    Just
write a test case for it as well.

>
>  Alex.
>
>
>  _______________________________________________
>  HTML-FormFu mailing list
>  HTML-FormFu at lists.rawmode.org
>  http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu
>



-- 
Zbigniew Lukasiak
http://brudnopis.blogspot.com/



More information about the HTML-FormFu mailing list