public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH proxmox-backup] ui: traffic-control: fix `users` field submition
@ 2025-11-24 14:21 Hannes Laimer
  2025-11-24 14:27 ` Hannes Laimer
  2025-11-24 15:01 ` [pbs-devel] applied: " Thomas Lamprecht
  0 siblings, 2 replies; 3+ messages in thread
From: Hannes Laimer @ 2025-11-24 14:21 UTC (permalink / raw)
  To: pbs-devel

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-11-24 15:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-24 14:21 [pbs-devel] [PATCH proxmox-backup] ui: traffic-control: fix `users` field submition Hannes Laimer
2025-11-24 14:27 ` Hannes Laimer
2025-11-24 15:01 ` [pbs-devel] applied: " Thomas Lamprecht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal