ui: SyncJobEdit: fix sending 'delete' values on SyncJob creation

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2020-11-04 11:34:14 +01:00 committed by Thomas Lamprecht
parent 42ca9e918a
commit 84006f98b2

View File

@ -68,18 +68,9 @@ Ext.define('PBS.window.SyncJobEdit', {
name: 'owner',
allowBlank: true,
emptyText: 'backup@pam',
getSubmitData: function() {
let me = this;
let name = me.getName();
let val = me.getSubmitValue();
let data = {};
if (val === null || val === "") {
data.delete = name;
} else {
data[name] = val;
}
return data;
skipEmptyText: true,
cbind: {
deleteEmpty: '{!isCreate}',
},
},
{