From 5df11b5c436079cc0a0963eab54f74fdda3cc4b3 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Thu, 11 Jul 2019 15:14:53 +0530 Subject: [PATCH] ui: fix custom offerings selection in upload volume form (#3479) Removed duplicate code for diskOffering field. Signed-off-by: Abhishek Kumar --- ui/scripts/storage.js | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/ui/scripts/storage.js b/ui/scripts/storage.js index e6eaacf2f6c..3066fff4349 100644 --- a/ui/scripts/storage.js +++ b/ui/scripts/storage.js @@ -514,29 +514,7 @@ if (this.iscustomized == true) { items.push({ id: this.id, - description: this.displaytext - }); - } - }); - args.response.success({ - data: items - }); - } - }, - diskOffering: { - label: 'label.custom.disk.offering', - docID: 'helpVolumeDiskOffering', - select: function(args) { - var diskOfferings = cloudStack.listDiskOfferings({}); - var items = [{ - id: '', - description: '' - }]; - $(diskOfferings).each(function() { - if (this.iscustomized == true) { - items.push({ - id: this.id, - description: this.displaytext + description: this.name }); } });