[html-formfu] Bug in default_values()?

Carl Franks fireartist at gmail.com
Tue Feb 24 09:15:28 GMT 2009


2009/2/23 Moritz Onken <onken at houseofdesign.de>:
> Hi Carl,
>
> I'm getting this error when I call ->model->default_values($row):
>
> "Can't locate object method "result_source" via package "DateTime" at
> /Library/Perl/5.8.8/HTML/FormFu/Model/DBIC.pm line 140."
>
>
> It refers to this line:
>
> my $rs = $dbic->result_source;
>
> but $rs is never used in this mehod.
>
> I'm using DBIC::Inflate::DateTime and FormFu inflators and deflators in that
> configuration.

Ok, I've removed that line in svn r1322.

The error message really confuses me though.
$row should be a DBIx::Class::Row object - but the error message
suggests it's a DateTime object.
Anyways - hopefully this'll fix your problem.

Carl



More information about the HTML-FormFu mailing list