From afd6caa91909ae87a2d6cea953d19971254f82dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn?= Date: Fri, 6 Nov 2015 13:32:04 +0100 Subject: [PATCH] Bug #4069: Honor the value requested in the disk-resize input This way if the value is lower the user will be notified with an error from the core. A nicer way would be to use a custom abide validator (cherry picked from commit ebf34a69c4e8b61e15e8ce742e627e4c47cddb36) --- src/sunstone/public/app/utils/disks-resize.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sunstone/public/app/utils/disks-resize.js b/src/sunstone/public/app/utils/disks-resize.js index 2628c3e9b7..dbfd0c5ed3 100644 --- a/src/sunstone/public/app/utils/disks-resize.js +++ b/src/sunstone/public/app/utils/disks-resize.js @@ -152,7 +152,7 @@ define(function(require){ disk = $(this).data("template_disk"); original_size = $(this).data("original_size"); size = $("#SIZE", this).val(); - if (size && size > original_size && size > 0) { + if (size) { disk['SIZE'] = Math.ceil(size * 1024); } }