do not send 'undefined' as romfile

when adding a pcidevice, we added 'romfile=undefined' by accident

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2018-12-05 13:25:25 +01:00 committed by Thomas Lamprecht
parent d6aa52529b
commit 2b25a905ad

View File

@ -55,6 +55,10 @@ Ext.define('PVE.qemu.PCIInputPanel', {
values.rombar = 0;
}
if (!values.romfile) {
delete values.romfile;
}
ret[me.confid] = PVE.Parser.printPropertyString(values, 'host');
return ret;
},