If a user only gives a country (and its all you require), and that country is the same as the default, it will match against location_empty_location() and so never be saved.
If a user only gives a country (and its all you require), and that country is the same as the default, it will match against location_empty_location() and so never be saved.
Comments
Comment #1
yesct commentedIs this still a problem in the newest dev version?
Comment #2
juicytoo commentedHi,.
using
location-6.x-3.1-rc1.tar.gz
The save default country does not appear.
It default to America in "create Content" in CCK.
cheers
Ed
Comment #3
yesct commentedEd, try the new .dev version.
Comment #4
bdragon commentedThat's a good point. I probabaly need to be checking whether the location itself is required before discarding such a location as empty.
Comment #5
johnedm commentedi did a bit of diggin... it is because, for some reason, the $items array in the update of location_cck_field has nothing in it when saved w/o the user changing anything but the lat/lng. not sure why that is, but seems to be fixed in the .dev version.
Comment #6
frankcarey commentedIs this the same issue? #730730: Default country location should not be 'us' but blank
Comment #7
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 #8
shaneonabike commentedI snagged the latest release and it still seems to be an issue. If the default value is set to Canada in the Location CCK it doesn't seem to save an country. If I change it to another country, save it, and then save it back to Canada then it saves.
Comment #9
igor.ro commenteddupicate http://drupal.org/node/560526#comment-4336818