Closed (fixed)
Project:
Location Feeds
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Aug 2010 at 11:24 UTC
Updated:
27 Sep 2010 at 15:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
elliotttf commentedI would need to investigate this a bit more, but from my early testing I seem to recall that if a country was not in ISO format the location module would not store it to the database.
Have you tried your changes out and confirmed they work? If so can you roll a patch so I can test?
Comment #2
dippers commentedI'm sorry, I have no idea how to roll a patch. I don 't use Drupal under CVS.
The changes do work and allow you to import 'Mongolia' as well as 'MN'.
Comment #3
john.money commentedConfirmed... the else @ line 205 will never fire with $var = 'Country' because location_standardize_country_code(...) sets $val to 'xx' with pass by reference.
Attached is patch which implements a new var to pass to location_standardize_country_code(...). The expected behavior that if a valid country code is not passed in, then attempt to match the country name now works.
Comment #4
elliotttf commentedFixed. Thanks guys for finding and patching this. Will release a new version shortly.