From 59b0103a5325074e0e0c105a9afd2b39a5e1117b Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Fri, 26 Sep 2014 12:02:48 -0700 Subject: [PATCH] CLOUDSTACK-7637: UI > fix a bug produced by 4.5 feature "template accross multiple zones" > fix it by including all properties to jsonObj. --- ui/scripts/templates.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/ui/scripts/templates.js b/ui/scripts/templates.js index d71a77444d2..9665ffda6d7 100644 --- a/ui/scripts/templates.js +++ b/ui/scripts/templates.js @@ -622,15 +622,10 @@ }); if (existing.length == 0) { - itemsView.push({ - id: item.id, - name: item.name, - description: item.description, - hypervisor: item.hypervisor, - ostypeid: item.ostypeid, + itemsView.push($.extend(item, { zones: item.zonename, zoneids: [item.zoneid] - }); + })); } else { existing[0].zones = 'label.multiplezones';