1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-13 12:58:17 +03:00

bug #1976: When a quota is edited, sunstone fills empty inputs with 0 as the default value, instead of -1

This commit is contained in:
Daniel Molina 2013-05-15 11:55:38 +02:00
parent 281145507e
commit 45af9a3c55

View File

@ -1483,7 +1483,7 @@ function setupQuotasDialog(dialog){
notifyError(tr("Please select an element"));
return false;
};
if (!value) value = 0;
if (!value) value = -1;
json[name] = value;
};