From a263b7e338a38bc95ca1acc306b012016d918514 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Wed, 7 Sep 2011 11:43:19 +0200 Subject: [PATCH] Add digest to prevent concurrent changes --- www/manager/window/Edit.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/www/manager/window/Edit.js b/www/manager/window/Edit.js index 578dc43fc..4e2f81c9c 100644 --- a/www/manager/window/Edit.js +++ b/www/manager/window/Edit.js @@ -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 {