public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH proxmox-backup] ui: fix usage of findRecord
@ 2020-11-26  8:27 Dominik Csapak
  2020-11-27  6:20 ` [pbs-devel] applied: " Dietmar Maurer
  0 siblings, 1 reply; 2+ messages in thread
From: Dominik Csapak @ 2020-11-26  8:27 UTC (permalink / raw)
  To: pbs-devel

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

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
 www/datastore/Summary.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/www/datastore/Summary.js b/www/datastore/Summary.js
index 1a6515ee..25a7b6e5 100644
--- a/www/datastore/Summary.js
+++ b/www/datastore/Summary.js
@@ -266,7 +266,8 @@ Ext.define('PBS.DataStoreSummary', {
 	    },
 	    failure: function(response) {
 		// fallback if e.g. we have no permissions to the config
-		let rec = Ext.getStore('pbs-datastore-list').findRecord('store', me.datastore);
+		let rec = Ext.getStore('pbs-datastore-list')
+		    .findRecord('store', me.datastore, 0, false, true, true);
 		if (rec) {
 		    me.down('pbsDataStoreNotes').setNotes(rec.data.comment || "");
 		}
-- 
2.20.1





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-11-27  6:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-26  8:27 [pbs-devel] [PATCH proxmox-backup] ui: fix usage of findRecord Dominik Csapak
2020-11-27  6:20 ` [pbs-devel] applied: " Dietmar Maurer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal