format task description: avoid printing undefined ID

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@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-06-05 14:51:44 +02:00
parent 2d10a5977c
commit 0545f1edb8

View File

@ -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;