]> git.proxmox.com Git - proxmox-backup.git/commit
ui: sync job: fix error if local namespace is selected first
authorLukas Wagner <l.wagner@proxmox.com>
Thu, 25 Apr 2024 08:59:36 +0000 (10:59 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 25 Apr 2024 09:50:02 +0000 (11:50 +0200)
commiteff279e7716be0efc26de8aa9787c093ac81a2a0
tree2fbb6049e87503a9f8531a8b7d4f3d0a1b50b4e3
parent5e12ca4ce7700f8a1d91431befe32966e81c9e58
ui: sync job: fix error if local namespace is selected first

When creating a new sync job and a local namespace is configured
without setting a remote first, the createMaxPrefixLength
was passed an array instead of a string/undefined/null, which
triggered a 'ns2.match is not a funtion exception', making the UI
glitchy afterwards.

Fixed by explicitly checking for a string. Verified that the other
user of NamespaceMaxDepthReduced, the prune job edit window, does not
break after the change.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
www/form/NamespaceMaxDepth.js