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', { ...@@ -71,6 +71,10 @@ Ext.define('PVE.window.Edit', {
} }
}); });
if (me.digest) {
values.digest = me.digest;
}
PVE.Utils.API2Request({ PVE.Utils.API2Request({
url: me.url, url: me.url,
waitMsgTarget: me, waitMsgTarget: me,
...@@ -105,6 +109,7 @@ Ext.define('PVE.window.Edit', { ...@@ -105,6 +109,7 @@ Ext.define('PVE.window.Edit', {
method: 'GET', method: 'GET',
success: function(response, opts) { success: function(response, opts) {
form.clearInvalid(); form.clearInvalid();
me.digest = response.result.data.digest;
if (successFn) { if (successFn) {
successFn(response, opts); successFn(response, opts);
} else { } 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