[html-formfu] (new) Model::DBIC, new_empty_row+delete_if_true
Alex Povolotsky
tarkhil at over.ru
Mon Apr 7 10:47:03 BST 2008
Hello!
I'm trying to use HTML::FormFu::Model::DBIC from trunk (svn today), and
when I'm using new_empty_row together with delete_if_true, it behaves
strangely
my form config file looks reasonable
=== cut ===
- type: Repeatable
nested_name: networks
counter_name: count
model_config:
DBIC:
new_empty_row: network
elements:
- type: Hidden
name: nid
- type: Text
name: network
label: 'Network:'
- type: Checkbox
name: delete
value: 1
model_config:
DBIC:
delete_if_true: 1
- type: Hidden
name: count
=== cut ===
First attempt to add record works ok.
Second leads to removal of both.
I will try to make a test case, but maybe I've made something wrong in
config?
Alex.
More information about the HTML-FormFu
mailing list