Closed (fixed)
Project:
Address field for CCK
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
17 May 2007 at 23:48 UTC
Updated:
6 Jun 2007 at 22:51 UTC
I encountered an error when installing this on a site for work. Fixed it with by changing from this, on line 458 of cck_address.module:
if(!$result) {
throw new Exception("Unknown Locale name $locale");
}
This could easily be done with drupal functions:
PHP4 and Drupal friendly:
if(!$result) {
drupal_set_message("Unknown Locale name $locale", "error");
return;
}
sorry, no patch, but its a one line fix :)
Comments
Comment #1
rconstantine commentedI didn't much think about this since it worked for me.
Fixed, but won't upload until I have a more substantial addition to the code.
For now, users should make this change manually. I'll update this issue once I make another CVS update.
Comment #2
rconstantine commentedjust uploaded fixed version
Comment #3
(not verified) commented