doesn't respect leading 0 in zip code

walden - May 24, 2007 - 20:38
Project:Address field for CCK
Version:5.x-1.0
Component:Code
Category:support request
Priority:normal
Assigned:rconstantine
Status:closed
Description

Here in Massachusetts, many zip codes begin with a 0. This module seems to strip them out...

#1

rconstantine - May 25, 2007 - 00:17
Assigned to:Anonymous» rconstantine

Odd. I wonder why. I'll look into it.

Wait... I originally used an integer for the field, but have changed it to text, I think. I'll make sure.

Meanwhile, what version number (as seen at the top of the .module file) are you using? Do you have the latest?

#2

walden - May 25, 2007 - 15:10

$Id: cck_address.info,v 1.1 2007/03/16 00:23:29

#3

rconstantine - May 25, 2007 - 15:50
Category:bug report» support request
Status:active» closed

Okay, try the new dev release and let me know if you still have problems. And check your database to make sure that the zip code fields are properly varchar. install_updates are supposed to modify them from ints.

I'm pretty sure you won't have problems. It looks like you were using the 1.0 release which was already out of date when you made this post. I'm not sure how others are using their releases, but my dev branch will always have (stable?) bug fixes, not experimental features. I'll keep experimental features in HEAD which can only be gotten from CVS. Major feature additions will warrant new full releases like 1.1 or 2.0 or whatever.

So I'm going to change this to support issue -> closed unless you have the same problem with the new release.

 
 

Drupal is a registered trademark of Dries Buytaert.