all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH proxmox-backup] ui: remote edit: correctly handle delete values as array
@ 2026-06-23 10:05 Christian Ebner
  2026-06-23 11:22 ` Dominik Csapak
  0 siblings, 1 reply; 3+ messages in thread
From: Christian Ebner @ 2026-06-23 10:05 UTC (permalink / raw)
  To: pbs-devel

PBS.Utils.delete_if_default() threats delete values either as array
or as comma separated list, depending on the type passed via the
parameters. For the remote edit window an array is needed to be api
compatible, so the parameter must be handled as such, also when only
a single delete value e.g. `port` is given a-priori.

Fixes: 45db2c6e8 ("ui: expose flag to use node's http proxy in remote edit window")
Fixes: https://forum.proxmox.com/threads/183130/post-858403
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
---
 www/window/RemoteEdit.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/www/window/RemoteEdit.js b/www/window/RemoteEdit.js
index 32f38ea10..e33325e3a 100644
--- a/www/window/RemoteEdit.js
+++ b/www/window/RemoteEdit.js
@@ -168,6 +168,10 @@ Ext.define('PBS.window.RemoteEdit', {
             delete values.password;
         }
 
+        if (values.delete && !Ext.isArray(values.delete)) {
+            values.delete = values.delete.split(',');
+        }
+
         if (!me.isCreate) {
             PBS.Utils.delete_if_default(values, 'use-node-proxy', false);
         }
-- 
2.47.3





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

end of thread, other threads:[~2026-06-23 11:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-23 10:05 [PATCH proxmox-backup] ui: remote edit: correctly handle delete values as array Christian Ebner
2026-06-23 11:22 ` Dominik Csapak
2026-06-23 11:53   ` obsoleted: " Christian Ebner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal