Closed (fixed)
Project:
Addresses
Version:
6.x-1.0-alpha3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Nov 2008 at 20:12 UTC
Updated:
25 Jan 2010 at 23:40 UTC
When an Address CCK field already created is edited, the radios that contain the options of the field do not reflect their current values.
To reproduce:
1) Create an Address CCK field.
2) Enable only country and city.
3) Save.
4) Edit the field again.
Yup! It looks like other fields are enabled, though it's just because the default_value of the FAPI element is not correctly set, I think.
Comments
Comment #1
markus_petrux commentedAfter step 3 above, the global settings for the field stored in the {content_node_field} table, once unserialized, look like this:
So the values where saved correctly, and if I go to create a node of that type, the add/edit form is built correctly.
The problem seems to be in addresses_cck_field_settings(), when the CCK field settings form is built. The way the #default_values of the radios are built seem to be the cause of the problem.
Comment #2
markus_petrux commentedOops! Sorry, typo in issue title.
Comment #3
codycraven commentedThis is fixed within the dev release