This commit is contained in:
rolux 2012-09-10 14:24:14 +02:00
parent 93d511f728
commit 91bd0e3684

View file

@ -578,7 +578,7 @@ Ox.Map = function(options, self) {
function addPlaceToPlaces(data) {
var place = Ox.extend(getSelectedPlace() || {}, data),
country = Ox.getCountryByGeoname(place.geoname) : {};
country = Ox.getCountryByGeoname(place.geoname) || {};
place.countryCode = country ? country.code : '';
self.options.selected = place.id;
setPlaceControls(place);