From d946a7ad8b710ba92ee6a9d10c75f1fd48e7d767 Mon Sep 17 00:00:00 2001 From: Michael Ziegler Date: Sat, 29 Aug 2009 14:36:59 +0200 Subject: [PATCH] work around store.find() comparing as "starts with", thereby finding uid=16 when searching for uid=1. --- template/mumble/mumble.htm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/template/mumble/mumble.htm b/template/mumble/mumble.htm index 2eea754..aa0f73e 100644 --- a/template/mumble/mumble.htm +++ b/template/mumble/mumble.htm @@ -231,9 +231,10 @@ editor: ownerCombo, renderer: function( value ){ if( value == '' ) return ''; - idx = ownerCombo.store.find( 'uid', value ); - rec = ownerCombo.store.getAt( idx ); - return rec.get( 'uname' ); + items = ownerCombo.store.data.items; + for( i = 0; i < items.length; i++ ) + if( items[i].data.uid == value ) + return items[i].data.uname; }, }, adminColumn, { header: '{% trans "Change password" %}',