[html-formfu] How do you handle "change password" forms?

Carl Franks fireartist at gmail.com
Wed Apr 15 10:45:38 GMT 2009


2009/4/15 Moritz Onken <onken at houseofdesign.de>:
>
> Am 15.04.2009 um 12:15 schrieb Carl Franks:
>
>> 2009/3/31 Moritz Onken <onken at houseofdesign.de>:
>>>
>>> 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?
>>
>> I've added tests for this with:
>>   t/default_values/empty_rows_zero.t
>>   t/default_values/empty_rows_zero.yml
>> and it seems to work fine.
>>
>> I've tried printing the form out, just to double-check - and there's
>> no extra row.
>>
>> If you still have this problem, can you try modifying the test to
>> demonstrate it?
>>
>> Cheers,
>> Carl
>
> I commited the changes to this test, so it fails. The point was that it
> creates an empty row
> if there are no items in the repeatable field.

Ah, ok.
This isn't down to any change in Model-DBIC.

Element::Repeatable->repeat() was doing
    $count ||= 1;
I've removed that, so it allows a count of zero.

Carl



More information about the HTML-FormFu mailing list