I have a content type (which is an Organic Groups post, and always attached to a group) that contains 3 CCK values under a single fieldgroup.
Status: text -> Selection list
Severity: Decimal (10,2) -> Selection list. Raw values 4, 2, 1, .5, .25, in that order. Default 1
Component: Noderef (filtered via views) -> Selection list
Status is affected by the Options Trim module, the only third party cck module in use.
When I create a node, all default values are preselected properly. However, when I edit an existing node, the "Severity" field always has the first value (4) selected. The other two fields retain their values as expected.
I vaguely remember reporting a similar issue while setting up my first site with 6.x-2.0... It was fixed, as I recall.
Comments
Comment #1
arhak commented#461536-2: $form_state['values'] not reflecting an accurate decimal value (i.e. non-significant zeros are dropped)
read that comment, where it states that you should use these values instead: 4.00, 2.00, 1.00, .50, .25
i.e. write down the decimal zeros on the extreme right until you meet your scale (2 in this case)
Comment #2
arhak commentedalso, I proposed a patch to avoid this unnatural requirement #461536-7: $form_state['values'] not reflecting an accurate decimal value (i.e. non-significant zeros are dropped)