[html-formfu] different behavior of H::F::Model::DBIC 0.04002 and 0.04003

Moritz Onken onken at houseofdesign.de
Wed May 13 11:02:41 GMT 2009


My bad. I'm very sorry.

Applied is a patch for DBIC and a test which addresses this issue,

Sorry again.

cheers,

moritz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: select_additive.patch
Type: application/octet-stream
Size: 5750 bytes
Desc: not available
Url : http://lists.scsys.co.uk/pipermail/html-formfu/attachments/20090513/ee871286/select_additive.obj
-------------- next part --------------


Am 13.05.2009 um 09:13 schrieb Wolfgang Kinkeldei:

> Good morning,
>
> the 2 latest versions of HTML::FormFu::Model::DBIC do behave  
> differently.
>
> In my table 'product' I have a column 'color_id' that references  
> color(color_id).
>
> the relevant part of my form config for a product looks like this:
> <snip>
>  - type: Select
>    name: color_id
>    label: Color
>    empty_first: 1
>    empty_first_label: '- none -'
>    model_config:
>      resultset: Color
>      label_column: color_name
>      attributes:
>        order_by: color_name
> <snap>
>
> Updating a record with 0.04002 works fine, doing the same with  
> 0.04003 yields the message:
> 'The primary key and the foreign key may not be the same column in  
> class ...'
>
> Am I doing something wrong that changed and I missed it?
>
>
>
> Regards,
>
> Wolfgang Kinkeldei
>
> -- 
>
> ' /\_/\ ' .print[split??,"".(($/=q|Cms)+-03467:;<=|)=~tr!C-z -B! -z!)x
> '( o.o )' .$/]->[hex]foreach split qr<>,qq+1ecd039ad65b025b8063475b+||
> ' > ^ < ' .q<!-- Wolfgang Kinkeldei - mailto:wolfgang at kinkeldei.de -->
>
>
>
> _______________________________________________
> HTML-FormFu mailing list
> HTML-FormFu at lists.scsys.co.uk
> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu



More information about the HTML-FormFu mailing list