fixes and regression for backup jobs which seems to get from empty
string to undefined ID in PVE 6.x - whyever...

Signed-off-by: Thomas Lamprecht <t.lampre...@proxmox.com>
---
 Utils.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Utils.js b/Utils.js
index 8548711..0b2d1d4 100644
--- a/Utils.js
+++ b/Utils.js
@@ -646,7 +646,7 @@ Ext.define('Proxmox.Utils', { utilities: {
        }
        let prefix = farray[0];
        text = farray[1];
-       if (prefix) {
+       if (prefix && id !== undefined) {
            return prefix + ' ' + id + ' - ' + text;
        }
        return text;
-- 
2.20.1


_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to