[html-formfu] Side effect of checkbox name

Alex Povolotsky tarkhil at over.ru
Wed Apr 9 18:15:30 BST 2008


Hello!

Trying HTML::FormFu (svn today), I've found that form for editing data 
with has_many relation cleans relation _sometimes_.

After some investigation, I've discovered that

      - type: Checkbox
        name: delete
        value: 1
        model_config:
          DBIC:
            delete_if_true: 1

cleans up relation, while

      - type: Checkbox
        name: del
        value: 1
        model_config:
          DBIC:
            delete_if_true: 1

works ok.

I guess it should be mentioned somewhere in manuals...

Alex.




More information about the HTML-FormFu mailing list