From: Hannes Laimer <h.laimer@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] [PATCH proxmox-backup] ui: traffic-control: fix `users` field submition
Date: Mon, 24 Nov 2025 15:21:07 +0100 [thread overview]
Message-ID: <20251124142107.6240-1-h.laimer@proxmox.com> (raw)
We should not submit an empty string when no user is selected, this
trips up the API endpoint.
Fixes: 7f4f195b ("ui: traffic-control: add users field in edit form and list")
Reported-by: Robert Obkircher <r.obkircher@proxmox.com>
Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
---
www/window/TrafficControlEdit.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/www/window/TrafficControlEdit.js b/www/window/TrafficControlEdit.js
index 83b84ff5..7243f5b3 100644
--- a/www/window/TrafficControlEdit.js
+++ b/www/window/TrafficControlEdit.js
@@ -283,6 +283,7 @@ Ext.define('PBS.window.TrafficControlEdit', {
name: 'users',
multiSelect: true,
allowBlank: true,
+ skipEmptyText: true,
cbind: {
deleteEmpty: '{!isCreate}',
},
--
2.47.3
_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel
next reply other threads:[~2025-11-24 14:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-24 14:21 Hannes Laimer [this message]
2025-11-24 14:27 ` Hannes Laimer
2025-11-24 15:01 ` [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=20251124142107.6240-1-h.laimer@proxmox.com \
--to=h.laimer@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