fix usage of findRecord

findRecord does not match exactly, but only at the beginning and
case insensitive, by default. Change all calls to be case sensiti
and an exactmatch (we never want the default behaviour afaics).

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2020-11-26 09:23:39 +01:00 committed by Thomas Lamprecht
parent 938a7b9f55
commit 0753b980c8
2 changed files with 3 additions and 3 deletions

View File

@ -346,14 +346,14 @@ Ext.define('Proxmox.form.ComboGrid', {
if (Ext.isArray(value)) {
Ext.Array.each(value, function(v) {
if (store.findRecord(me.valueField, v)) {
if (store.findRecord(me.valueField, v, 0, false, true, true)) {
found = true;
return false; // break
}
return true;
});
} else {
found = !!store.findRecord(me.valueField, value);
found = !!store.findRecord(me.valueField, value, 0, false, true, true);
}
return found;

View File

@ -15,7 +15,7 @@ Ext.define('Proxmox.form.RealmComboBox', {
}
let me = this;
let val = me.getValue();
if (!val || !me.store.findRecord('realm', val)) {
if (!val || !me.store.findRecord('realm', val, 0, false, true, true)) {
let def = 'pam';
Ext.each(records, function(rec) {
if (rec.data && rec.data.default) {