From 9cc4c3dede74362e4fef25d4a7ef5b2a5214d96f Mon Sep 17 00:00:00 2001 From: Abel Coronado Date: Fri, 5 May 2017 11:50:20 +0200 Subject: [PATCH] B #5133 Solved bug in storage size when update vm template (#287) --- .../form-panels/create/wizard-tabs/storage/disk-tab.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/storage/disk-tab.js b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/storage/disk-tab.js index 787ed3518e..2a7d361f33 100644 --- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/storage/disk-tab.js +++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/storage/disk-tab.js @@ -166,6 +166,10 @@ define(function(require) { function _fill(context, templateJSON) { var selectedContext; + if(templateJSON.SIZE){ + templateJSON.SIZE = templateJSON.SIZE / 1024; + } + if (templateJSON.IMAGE_ID || templateJSON.IMAGE) { $('input#' + this.diskTabId + 'radioImage', context).click();