Skip to content

Commit 59b0103

Browse files
author
Jessica Wang
committed
CLOUDSTACK-7637: UI > fix a bug produced by 4.5 feature "template accross multiple zones" > fix it by including all properties to jsonObj.
1 parent 402a332 commit 59b0103

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

ui/scripts/templates.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -622,15 +622,10 @@
622622
});
623623

624624
if (existing.length == 0) {
625-
itemsView.push({
626-
id: item.id,
627-
name: item.name,
628-
description: item.description,
629-
hypervisor: item.hypervisor,
630-
ostypeid: item.ostypeid,
625+
itemsView.push($.extend(item, {
631626
zones: item.zonename,
632627
zoneids: [item.zoneid]
633-
});
628+
}));
634629
}
635630
else {
636631
existing[0].zones = 'label.multiplezones';

0 commit comments

Comments
 (0)