I hope this is not a duplicate bug - I searched the issue queue but couldn't see anything.

To replicate:

  • Install the module and enable location, location cck
  • Create a content type and in "Country" select the "force default" and something other than USA, I selected United Kingdom

When you go to add a new node to the content type the States auto complete tries to select states from the US. Also when saving the node the country seems to be set as USA even if you select United Kingdom.

Changing the default country in /admin/settings/location/main to United Kingdom still doesn't make the states respect the Country.

This does work if you let people select the Country, i.e. set it to required and then let them select a State.

The fix for this seems to be:

  • Install the module
  • SET THE DEFAULT COUNTRY IN /admin/settings/location/main to United Kingdom
  • Go on to create your cck field accordingly

If you have set up the module already and created a content type you can simply delete the content type, set the default country and the cck field again.

From this point the location module respects the default country and selects states based on the default country.

Comments

BenGman’s picture

I get this same issue

Drupal: 6.19
CCK: 6.x-2.8
Location: 6.x-3.1
Location CCK: 6.x-3.1

Any country selection other than US stays as US.

Also, no default values set for fields show in node creation nor node edit forms.. the default values only show on node save.

I also tried disabling all location modules, uninstalling all location modules, re-downloading and enabling and the default options still do not show (http://drupal.org/node/949062).

BenGman’s picture

I got the default value to work only when using 'Default value' for general CCK fields and not the 'Default' of the CCK Location field.

legolasbo’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Closing old D6 issues as D6 is end of life