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.


_______________________________________________
HTML-FormFu mailing list
[email protected]
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Reply via email to