Closed (fixed)
Project:
Address field for CCK
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
15 May 2007 at 02:49 UTC
Updated:
29 May 2007 at 18:33 UTC
When creating a simple note type with an Adress field, i got an SQL error on the 'zip' field ADD COLUMN query (sorry, i did not copy it), resulting in the {content_type_<node-type-name>} table to not have a 'field_<cck-address-field-name>_zip' field.
The solution is to modify line 193 in cck_address.module (function cck_address_field_settings):
'zip' => array('type' => 'varchar', 'length' => 15, 'not null' => TRUE, 'default' => "''", 'sortable' => TRUE),
(added : 'length' => 15,).
Comments
Comment #1
rconstantine commentedYou're right. Not sure how I missed that. I've uploaded the change. Look for another dev release once cron runs.
You'll notice in the install file, update 2, I did add length 15 to zip, but that's only for existing installs. Your patch is for new installs.
Thanks.
Comment #2
(not verified) commented