Am 05.06.2009 um 17:14 schrieb Mario Minati:
Am Freitag 05 Juni 2009 09:59:14 schrieb Nigel Metheringham:
On 5 Jun 2009, at 03:03, Mike South wrote:
I think there is a very similar bug in delete_if_empty but that
throws an exception in a way I haven't yet been able to trace.
What exception do you get?
The error thrown is
DBIx::Class::Schema::__ANON__(): Can't find source for Date at
[...]/lib/HTML/FormFu/Model/DBIC.pm line 132
That file is the HTML::FormFu::Model::DBIC source as per svn rev 1528
So it appears to be that adding delete_if_empty is for some reason
forcing a
lookup for a resultset to be done - which is actually rather
different
to the
delete_if_true problem. I'll have to add some code to force a
traceback there.
I've attached the complete form config file. The plugin is not
relevant to
this problem (things fail in just the same way without it) - I'll
also
push a
sample of the plugin out when I have got it a little more finished.
Hi Nigel,
are you sure this is FF related and not a DBIC problem?
'Date' with capital 'D' does not come from the form config, so I
guess this
must be a DBIC class.
What is the value of $rs_name in line 132?
Hi Mario,
I think it is FF related because FF::Model::DBIC tries to guess the
correct ResultSet by upper casing the first character of the field name.
this happens if model_config is defined. No matter what it contains.
moritz
_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu