Skip to content

Commit 5df11b5

Browse files
shwstppryadvr
authored andcommitted
ui: fix custom offerings selection in upload volume form (#3479)
Removed duplicate code for diskOffering field. Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
1 parent b7988a3 commit 5df11b5

1 file changed

Lines changed: 1 addition & 23 deletions

File tree

ui/scripts/storage.js

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -514,29 +514,7 @@
514514
if (this.iscustomized == true) {
515515
items.push({
516516
id: this.id,
517-
description: this.displaytext
518-
});
519-
}
520-
});
521-
args.response.success({
522-
data: items
523-
});
524-
}
525-
},
526-
diskOffering: {
527-
label: 'label.custom.disk.offering',
528-
docID: 'helpVolumeDiskOffering',
529-
select: function(args) {
530-
var diskOfferings = cloudStack.listDiskOfferings({});
531-
var items = [{
532-
id: '',
533-
description: ''
534-
}];
535-
$(diskOfferings).each(function() {
536-
if (this.iscustomized == true) {
537-
items.push({
538-
id: this.id,
539-
description: this.displaytext
517+
description: this.name
540518
});
541519
}
542520
});

0 commit comments

Comments
 (0)