mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-08 03:32:14 +00:00
window/Edit: read digest also from top level response
we want to have the digest in the top level object, like: { data: { /* the real data */ }, digest: "fa123asf123123123", // the digest } instead of in the data itself, so read it preferably from there (with fallback to stay compatible) Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
d8f909e10a
commit
8ae2f8c8b1
@ -192,7 +192,7 @@ Ext.define('Proxmox.window.Edit', {
|
|||||||
method: 'GET',
|
method: 'GET',
|
||||||
success: function(response, opts) {
|
success: function(response, opts) {
|
||||||
form.clearInvalid();
|
form.clearInvalid();
|
||||||
me.digest = response.result.data.digest;
|
me.digest = response.result.digest || response.result.data.digest;
|
||||||
if (successFn) {
|
if (successFn) {
|
||||||
successFn(response, opts);
|
successFn(response, opts);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user