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:
parent
b88ccf68a1
commit
d7cc47e762
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user