[html-formfu] HTML::FormFu::Model::DBIC only deleting or
savingthe first has_many relationship in a Repeatable block
Byron Young
Byron.Young at riverbed.com
Thu Feb 28 22:25:34 GMT 2008
Zbigniew Lukasiak wrote:
> But in fact I think I have found your problem - you have not added the
> count field which is mandatory for Repeatable blocks. At some time
> I'll check if we can get rid of this requirement - but for now you
> need to add:
>
> - type: Hidden
> name: count
>
Thanks Zbigniew! It works perfectly now. That counter wasn't clear to
me when reading the documentation for FormFu::Model::DBIC and
Element::Repeatable.
So, on a similar note, if I wanted to add multiple has_a relationships
at once instead of just one new one (via some javascript in a button or
a drop down list allowing the user to select how many to add), is there
currently any support for adding more than one at a time?
Thanks again,
Byron
More information about the HTML-FormFu
mailing list