Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Napoli <matthieu@mnapoli.fr>2015-07-27 11:46:29 +0300
committerMatthieu Napoli <matthieu@mnapoli.fr>2015-07-27 11:46:29 +0300
commit9e098814fb0088dbf94e50f7b326c0c9574e5909 (patch)
tree6612f377161428263a03f8a566ca56cac8bb2221 /plugins/UserCountryMap/javascripts/visitor-map.js
parent4f9f30e653ff22e253e90b0d3797a5831fb259d0 (diff)
Fix #8285 UserCountryMap shows wrong options in countries select
Diffstat (limited to 'plugins/UserCountryMap/javascripts/visitor-map.js')
-rw-r--r--plugins/UserCountryMap/javascripts/visitor-map.js4
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();