1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

bug #2220: Update quota cannot create 2 quotas for the same type of resource

This commit is contained in:
Daniel Molina 2013-07-30 18:53:40 +02:00
parent b88ccf68a1
commit d7cc47e762

View File

@ -1519,7 +1519,10 @@ function setupQuotasDialog(dialog){
var json = JSON.parse($(this).attr('quota'));
var type = json['TYPE'];
delete json['TYPE'];
obj[type.toUpperCase()] = json;
if (typeof obj[type.toUpperCase()] == "undefined") {
obj[type.toUpperCase()] = [];
}
obj[type.toUpperCase()].push(json);
});
var action = $('div.form_buttons button',this).val();