[pve-devel] applied: [PATCH proxmox-widget-toolkit 1/2] format task description: avoid printing undefined ID

Thomas Lamprecht t.lamprecht at proxmox.com
Fri Jun 5 15:13:38 CEST 2020


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.lamprecht at 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





More information about the pve-devel mailing list