Closed (outdated)
Project:
Location
Version:
6.x-3.1-rc1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Jun 2009 at 22:36 UTC
Updated:
19 Jul 2016 at 13:07 UTC
Jump to comment: Most recent
Comments
Comment #1
yesct commentedPlease check to see if this is still a problem in the new release. If it is, reply with a new summary and set the status back to active.
Comment #2
alieffring commentedThe problem is that the province autocomplete only gets "twiddled" when the country select gets changed, but if you submit the form with an error the change() event doesn't fire and the autocomplete is looking for US states instead of provinces in the proper country.
Adding the following line to the end of the Drupal.behaviors.location function in location_autocomplete.js fixes it:
Comment #3
alieffring commentedTurns out the fix isn't that simple; just invoking the change() hook will empty out any default value in the autocomplete field.
Comment #4
legolasboClosing old D6 issues as D6 is end of life