mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-05-29 19:30:08 +00:00
ui: printPropertyString: skip empty string values
This cannot work anyway, and it simplifies some editors for format-string backed properties, like the upcoming u2f settings integration. If such a value was passed to the backend one would get: > invalid format - missing key in comma-separated list property Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
f6b2b1708f
commit
08e38f032d
@ -86,7 +86,7 @@ Ext.define('PVE.Parser', { statics: {
|
|||||||
if (defaultKey !== undefined && key === defaultKey) {
|
if (defaultKey !== undefined && key === defaultKey) {
|
||||||
gotDefaultKeyVal = true;
|
gotDefaultKeyVal = true;
|
||||||
defaultKeyVal = value;
|
defaultKeyVal = value;
|
||||||
} else {
|
} else if (value !== '') {
|
||||||
stringparts.push(key + '=' + value);
|
stringparts.push(key + '=' + value);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user