Refering to files, location.xx.inc in "supported" folder.

I made change to location.my.inc,

'LB' => "Labuan"

to

'LA' => "Labuan"

Then edited that location node, and re-submit. (I changed to another province, then switched back to the old province) No changes are reflected.

I have cleared drupal cache, browser cache and restarted the local server (MAMP).

These location.xx.inc are really persistent.

To reproduce this
1. Create a location country - Malaysia. key in "Kedah" in province/state.
2. Submit. You will see KD, in your province/state
3. Go to location.my.inc

'KD' => "Kedah"

to

'AB' => "Kedah"

4. Edit the location node you created in step 1.
5. Change to another province, say "Sarawak"
6. Submit. (You will get SR)
7. Now, edit that node location to "Kedah".

Supposed to get AB, but instead it would still be KD.

Is this a bug?

Comments

yesct’s picture

jcamfield’s picture

Version: 5.x-3.0 » 6.x-3.0

I am having this problem in D6/Loc3 ; changes to files in sites/all/modules/location/supported/location.xx.inc do not reflect in the autocomplete (testing using URL/location/autocomplete/xx ) even after a cache clearing (web browser and drupal) and a cron run.

Some weird details:

I got one file (added Lebanon states) to work on a test site (which had no Lebanese locations posted) but changes to other location.xx.inc files do not seem to refresh. On a live site, neither adding the Lebanese states nor changing existing files refreshes to the autocomplete side.

Is there an autocomplete cache to clear?

jcamfield’s picture

Category: bug » feature

FIXED; much thanks to BDragon in IRC for troubleshooting this!

Use the devel module to execute this code after and changes to supported/location.xx.inc files:

cache_clear_all('provinces:', 'cache_location', TRUE);

Feature request: make a button for the location admin page to do this.

bdragon’s picture

Version: 6.x-3.0 » 6.x-3.x-dev
Status: Active » Fixed

OK, hopefully I got all the code right, would appreciate some testing.

http://drupal.org/cvs?commit=198346
http://drupal.org/cvs?commit=198348
http://drupal.org/cvs?commit=198350

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

marcushenningsen’s picture