[html-formfu] Add more than one item (repeatable DBIC)

Carl Franks fireartist at gmail.com
Wed Apr 30 15:54:19 BST 2008


2008/4/23 Moritz Onken <onken at houseofdesign.de>:
> Hi,
>  attached is a test which fails if you add more than one item to a has-many
> relationship:
>
>  I hope I didn't miss a config switch?!

At the moment, the 'new_empty_row' option only allows you to add 1 new row.
Yes, supporting more than 1 row would be good.
First off, you could test whether it works by deleting line 383 from
lib/HTML/FormFu/Model/DBIC.pm
- it's the line that reads "&& $i == $max"

I think though, that this new behaviour should be off by default, with
a new option to switch it on.
I wondering whether this option's value should be a number, that can
control the maximum allowed number of new rows?

Carl



More information about the HTML-FormFu mailing list