mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-29 18:58:37 +00:00
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:
parent
938a7b9f55
commit
0753b980c8
@ -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;
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user