From 84006f98b2420396cfe3f8ccdbf52987dc525330 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Wed, 4 Nov 2020 11:34:14 +0100 Subject: [PATCH] ui: SyncJobEdit: fix sending 'delete' values on SyncJob creation Signed-off-by: Dominik Csapak --- www/window/SyncJobEdit.js | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/www/window/SyncJobEdit.js b/www/window/SyncJobEdit.js index 4edc8cc5..c89b95d2 100644 --- a/www/window/SyncJobEdit.js +++ b/www/window/SyncJobEdit.js @@ -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}', }, }, {