From: Dominik Csapak <d.csapak@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] [PATCH proxmox-backup] ui: SyncJobEdit: fix sending 'delete' values on SyncJob creation
Date: Wed, 4 Nov 2020 11:34:14 +0100 [thread overview]
Message-ID: <20201104103414.3779-1-d.csapak@proxmox.com> (raw)
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
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}',
},
},
{
--
2.20.1
next reply other threads:[~2020-11-04 10:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-04 10:34 Dominik Csapak [this message]
2020-11-04 10:46 ` [pbs-devel] applied: " Thomas Lamprecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201104103414.3779-1-d.csapak@proxmox.com \
--to=d.csapak@proxmox.com \
--cc=pbs-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox