Browse files

MDL-42998: Fix user selection search options autoselectunique.

  • Loading branch information...
1 parent 2f3a0c3 commit ef95b087f80f9a9b557d99b714c531d05f5e1db1 @tlock tlock committed with damyon Nov 21, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 user/selector/module.js
View
2 user/selector/module.js
@@ -259,7 +259,7 @@ M.core_user.init_user_selector = function (Y, name, hash, extrafields, lastsearc
if (count > 0) {
optgroup.set('label', groupname+' ('+count+')');
- if (processsingle && count===1 && this.get_option('autoselectunique') && option.get('disabled')) {
+ if (processsingle && count===1 && this.get_option('autoselectunique') && option.get('disabled') == false) {
option.set('selected', true);
}
} else {

0 comments on commit ef95b08

Please sign in to comment.