Browse Source

work around store.find() comparing as "starts with", thereby finding uid=16 when searching for uid=1.

Natenom/support-murmur-13-1446181288462
Michael Ziegler 16 years ago
parent
commit
d946a7ad8b
  1. 7
      template/mumble/mumble.htm

7
template/mumble/mumble.htm

@ -231,9 +231,10 @@
editor: ownerCombo, editor: ownerCombo,
renderer: function( value ){ renderer: function( value ){
if( value == '' ) return ''; 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, { }, adminColumn, {
header: '{% trans "Change password" %}', header: '{% trans "Change password" %}',

Loading…
Cancel
Save