Re: [html-formfu] Fix for creating a belongs_to related row

2010-03-01 Thread Moritz Onken
Hi Carl! I'm sorry I missed that. Try to change that line to $dbic->discard_changes unless($dbic->$rel); All tests pass. I'm not sure why the PK is being lost in the process. I had to set the relationship to some value because otherwise DBIC would complain that the relationship could not be re

Re: [html-formfu] Fix for creating a belongs_to related row

2010-03-01 Thread Carl Franks
On 20 February 2010 17:10, Moritz Onken wrote: > Hi, > > this is a patch to allow a form to create a row in a belongs_to related > table. This was not working till now. The Band.pm class had actually a wrong > relationship set which made it look like it would work. I also added a test > to conf

Re: [html-formfu] Fix for creating a belongs_to related row

2010-02-22 Thread Moritz Onken
Done. On Sun, 21 Feb 2010 21:09:31 +, Carl Franks wrote: > On 20 February 2010 17:10, Moritz Onken wrote: >> Hi, >> >> this is a patch to allow a form to create a row in a belongs_to related >> table. This was not working till now. The Band.pm class had actually a >> wrong relationship set w

Re: [html-formfu] Fix for creating a belongs_to related row

2010-02-21 Thread Carl Franks
On 20 February 2010 17:10, Moritz Onken wrote: > Hi, > > this is a patch to allow a form to create a row in a belongs_to related > table. This was not working till now. The Band.pm class had actually a wrong > relationship set which made it look like it would work. I also added a test > to conf

[html-formfu] Fix for creating a belongs_to related row

2010-02-20 Thread Moritz Onken
Hi, this is a patch to allow a form to create a row in a belongs_to related table. This was not working till now. The Band.pm class had actually a wrong relationship set which made it look like it would work. I also added a test to confirm my findings. I can submit that patch to the repo if th