2009/4/15 Moritz Onken <on...@houseofdesign.de>: > > Am 15.04.2009 um 12:15 schrieb Carl Franks: > >> 2009/3/31 Moritz Onken <on...@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 _______________________________________________ HTML-FormFu mailing list HTML-FormFu@lists.scsys.co.uk http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu