Closed (fixed)
Project:
Location
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Mar 2005 at 14:04 UTC
Updated:
23 Mar 2005 at 06:19 UTC
Jump to comment: Most recent file
Comments
Comment #1
robertdouglass commentedno idea why the patch is so large and messy. It applies to both files (from the location folder level). I'll go ahead and make patches for the two individual files - maybe that will be easier for you.
Attached is location.module patch
Comment #2
robertdouglass commentedand location.inc patch. At least this one is easier to read.
Comment #3
ankur commentedHey Robert,
I was taking a look at the code and realized that the error that causes the missing dash in what should be 'us-MI' is a bug in the function _location_province_select_options().
The line that reads
$options_list[$countrycodes[0] . $province_code] = $province_name;
should really be
$options_list[$countrycodes[0] . '-' . $province_code] = $province_name;
Would you be willing to change the patch to make this correction? I'm really interested in using the drupal_set_path() fix you submitted. I know that the lack of drupal_set_path() was an issue, but didn't really know how to use the function. I wanted to look it up before I went on vacation, but it was one of the many tweaks on my list of things to fix. Thanks for the patch though. I will commit it (or ask you to commit it) when I get to back to the linux box in the office (committing patches from a Windows machine causes an issue with carriage returns vs linebreaks, which is why the patch files look messy even if you are changing a few lines).
-Ankur
Comment #4
robertdouglass commentedHi Ankur,
I committed the changes. Great module, by the way :-)