Skip Menu |

This queue is for tickets about the HTML-FormHandler-Model-DBIC CPAN distribution.

Report information
The Basics
Id: 85888
Status: resolved
Worked: 30 min
Priority: 0/
Queue: HTML-FormHandler-Model-DBIC

People
Owner: Nobody in particular
Requestors: castaway [...] desert-island.me.uk
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.24
Fixed in: (no value)



Subject: label_column for "Select" can't be a method on the related object
The source for lookup_options seems to imply that you can provide a method name in "label_column" instead of a column name. However the tests for this check that it exists on the source, which won't work as the source object is just a DBIx::Class::ResultSource::Table instance. I changed the test in line 171 to this in my copy: return unless ( $source->has_column($label_column) || $f_class->can($label_column) ); which seems to make it work for me.
Fixed in repo, will go out in next release.