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>
method: 'GET',
success: function(response, opts) {
form.clearInvalid();
- me.digest = response.result.data.digest;
+ me.digest = response.result.digest || response.result.data.digest;
if (successFn) {
successFn(response, opts);
} else {