[pbs-devel] [PATCH proxmox-backup] ui: fix usage of findRecord

Dominik Csapak d.csapak at proxmox.com
Thu Nov 26 09:27:31 CET 2020


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 at 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






More information about the pbs-devel mailing list