[html-formfu] Repeatable displays every row in table (bug?)
Greg Coates
greg at coatesoft.com
Mon May 11 17:15:40 GMT 2009
Yep, that solved it for me too.
Greg
Ascii King wrote:
> I had this same problem back in this thread
> http://lists.scsys.co.uk/pipermail/html-formfu/2009-March/001884.html
>
> the answer was how I was calling the new record. I eeded to use
> find_or_new to call a new record.
> my $book = $c->model('DB::MyTable')->find_or_new({ id => $id });
>
> Mario Minati wrote:
>>> OK. Let me try again, then.
>>>
>>> I have a form that is used to display invoices from a table called
>>> 'invoices'. It contains a Repeatable that is used to display the
>>> individual lines for those invoices. These lines come from a table
>>> called 'invoice_items'.
>>>
>>> When the form is used on an existing record, all is well. However, when
>>> I use the form to create a new record, I have a problem. Instead of the
>>> Repeatable being blank, every row from the 'invoice_items' table is
>>> displayed.
>>>
>>> Greg
More information about the HTML-FormFu
mailing list