From 8402cfaa1d05e81ddf706c5a486b6bf59e97dbed Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Mon, 27 Jun 2011 14:32:43 -0700 Subject: [PATCH] bug 10433: fix a bug that was caused by global zone name cache. --- ui/scripts/cloud.core.iso.js | 3 ++- ui/scripts/cloud.core.template.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/scripts/cloud.core.iso.js b/ui/scripts/cloud.core.iso.js index 946f8418148..6e8cbca2c39 100644 --- a/ui/scripts/cloud.core.iso.js +++ b/ui/scripts/cloud.core.iso.js @@ -110,7 +110,8 @@ function initAddIsoDialog() { data: createURL("command=listZones&available=true"), dataType: "json", success: function(json) { - g_zoneIds = []; + g_zoneIds = []; + g_zoneNames = []; var zones = json.listzonesresponse.zone; if (zones != null && zones.length > 0) { for (var i = 0; i < zones.length; i++) { diff --git a/ui/scripts/cloud.core.template.js b/ui/scripts/cloud.core.template.js index c18a20bb899..b1b178939b9 100644 --- a/ui/scripts/cloud.core.template.js +++ b/ui/scripts/cloud.core.template.js @@ -218,7 +218,8 @@ function afterLoadTemplateJSP() { data: createURL("command=listZones&available=true"), dataType: "json", success: function(json) { - g_zoneIds = []; + g_zoneIds = []; + g_zoneNames = []; var zones = json.listzonesresponse.zone; if (zones != null && zones.length > 0) { for (var i = 0; i < zones.length; i++) {