combogrid: always set the initial value, even if not found

as else one lies to the user and only creates strange behavior,
one should see the values even if not there anymore, if this is a
invalid state is left for a later patch.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2019-07-17 16:17:55 +02:00
parent ef2235c91a
commit f59a7b2350

View File

@ -382,7 +382,7 @@ Ext.define('Proxmox.form.ComboGrid', {
def = rec.data[me.valueField]; def = rec.data[me.valueField];
me.setValue(def, true); me.setValue(def, true);
} else { } else {
me.setValue(me.editable ? def : '', true); me.setValue(def);
} }
} }
} }