Hi Carl,

I played around with empty_rows a little and noticed that it is not possible to set empty_rows: 0. There will always be a new empty row. is this behaviour intended?

Also, is it still possible to add "as many rows as I like" without setting
empty_rows: 9999 or something? Is it still possible to set a counter and
leave empty_rows unset?

cheers,

moritz

Am 31.03.2009 um 11:12 schrieb Carl Franks:

mortiz++
Patch applied at r1412.

btw, if you try running Model-DBIC from svn, be aware that
'new_empty_row' + 'new_empty_row_multi' are deprecated.
They still work - they just spew warnings.

The docs are partly updated, but I've still got un-checked-in changes
that I'm working on.
As soon as the docs are done, I'll push another cpan release.

Carl


2009/3/31 Moritz Onken <on...@houseofdesign.de>:


Have fun :-)

Am 31.03.2009 um 10:00 schrieb Carl Franks:

2009/3/30 Moritz Onken <on...@houseofdesign.de>:

Hi,

I have a pretty large form where you can change the password using two password fields which have to match if you want to change the password.

Problem right now is, that these password fields get sent with an empty value and Model::DBIC inserts those empty strings in the database, thus changing the password. My workaround right now is to remove those two
password fields if they are empty. This is done before
submitted_and_valid
and works great so far.

I was just wondering if there is a better way to do this. Or if it is
reasonable to add this functionality to the model_config where
Model::DBIC
can pick it up and skip the password fields if they are empty.

Hmm, I'm confused.
I just did a grep for "ignore_if_empty" and found no matches - but I
would have sworn I added this in the last few weeks.
Maybe I just dreamed it.
If anyone wants to send a patch to add this to model_config() - (with
tests) - please do.

Carl

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


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


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


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

Reply via email to