From e8b63e7f9dcc4c7ccaeb019987e16852384cf804 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Tue, 21 Sep 2010 20:14:43 -0700 Subject: [PATCH] fix bug 6154 (port forwarding should show user-assigned VM name instead of system-assigned VM name. --- ui/scripts/cloud.core.network.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/scripts/cloud.core.network.js b/ui/scripts/cloud.core.network.js index daaec13fca8..4ee686fffff 100644 --- a/ui/scripts/cloud.core.network.js +++ b/ui/scripts/cloud.core.network.js @@ -409,7 +409,8 @@ function showNetworkingTab(p_domainId, p_account) { template.find("#row_container #protocol").text(json.protocol); template.find("#row_container_edit #protocol").text(json.protocol); - template.find("#row_container #vm_name").text(json.vmname); + var vmName = getVmName(json.vmname, json.vmdisplayname); //json doesn't include vmdisplayname property(incorrect). Waiting for Bug 6241 to be fixed.... + template.find("#row_container #vm_name").text(vmName); var virtualMachineId = json.virtualmachineid; $.ajax({