ui: SyncJobEdit: fix sending 'delete' values on SyncJob creation
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
42ca9e918a
commit
84006f98b2
@ -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}',
|
||||
},
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user