diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-07-27 11:46:29 +0300 |
---|---|---|
committer | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-07-27 11:46:29 +0300 |
commit | 9e098814fb0088dbf94e50f7b326c0c9574e5909 (patch) | |
tree | 6612f377161428263a03f8a566ca56cac8bb2221 /plugins/UserCountryMap | |
parent | 4f9f30e653ff22e253e90b0d3797a5831fb259d0 (diff) |
Fix #8285 UserCountryMap shows wrong options in countries select
Diffstat (limited to 'plugins/UserCountryMap')
-rw-r--r-- | plugins/UserCountryMap/javascripts/visitor-map.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/UserCountryMap/javascripts/visitor-map.js b/plugins/UserCountryMap/javascripts/visitor-map.js index 60588220d9..7b5210473c 100644 --- a/plugins/UserCountryMap/javascripts/visitor-map.js +++ b/plugins/UserCountryMap/javascripts/visitor-map.js @@ -1178,7 +1178,9 @@ // populate country select $.each(countryData, function (i, country) { - countrySelect.append('<option value="' + country.iso + '">' + country.name + '</option>'); + if (!!country.iso) { + countrySelect.append('<option value="' + country.iso + '">' + country.name + '</option>'); + } }); initUserInterface(); |