Commit a263b7e3 authored by Dietmar Maurer's avatar Dietmar Maurer

Add digest to prevent concurrent changes

parent 6a56c350
......@@ -71,6 +71,10 @@ Ext.define('PVE.window.Edit', {
}
});
if (me.digest) {
values.digest = me.digest;
}
PVE.Utils.API2Request({
url: me.url,
waitMsgTarget: me,
......@@ -105,6 +109,7 @@ Ext.define('PVE.window.Edit', {
method: 'GET',
success: function(response, opts) {
form.clearInvalid();
me.digest = response.result.data.digest;
if (successFn) {
successFn(response, opts);
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment