B #5509: Fix change memory unit on instantiate dialog (#1419)

(cherry picked from commit a6c276a5b7afe41d4a1895bd7d4339d874e896b6)
This commit is contained in:
Frederick Borges authored and Tino Vazquez committed 2021-08-30 13:18:09 +02:00
1 parent fa2c853b80
commit 122ab81d27
1 file changed
+2 -2
+2 -2
View File
@@ -765,7 +765,7 @@ define(function(require) {
baseCal = base;
unit = "GB";
}
if (value && value.length > 0) {
if (value >= 0) {
valueInMB = value;
if(!isNaN(min) && parseInt(min, 10) > valueInMB ){
valueInMB = min;
@@ -799,7 +799,7 @@ define(function(require) {
unit = "MB";
break;
}
if (value && value.length > 0) {
if (value >= 0) {
valueInMB = value * baseCal;
if(!isNaN(min) && parseInt(min, 10) > valueInMB ){
valueInMB = min;