[html-formfu] Model::DBIC: Support multi_value fields for has_one
relationships
Moritz Onken
onken at houseofdesign.de
Fri May 8 16:33:45 GMT 2009
Hi Carl,
I attached a patch which adds support for multi_value fields to select
values of a has_one or might_have relationship. You can use now a
Select box to choose oan item of the has_one relationship.
The current implementation uses transactions to make sure, that the
new items exists and if not (rollback), that the current status of the
relationship is preserved.
I think there is no transaction code in Model::DBIC yet. So I'm not
sure if you like it that way.
Works both for create, update and default_values.
Tests are attached as well.
cheers,
moritz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: has_one_select.patch
Type: application/octet-stream
Size: 8147 bytes
Desc: not available
Url : http://lists.scsys.co.uk/pipermail/html-formfu/attachments/20090508/c01628e2/has_one_select.obj
-------------- next part --------------
More information about the HTML-FormFu
mailing list