Permalink
Browse files

MDL-42998: Fix user selection search options autoselectunique.

  • Loading branch information...
tlock authored and damyon committed Nov 20, 2013
1 parent 62daeec commit 9bd1ba9ee6d025919bb54b3f325f0866be3668a3
Showing with 1 addition and 1 deletion.
  1. +1 −1 user/selector/module.js
View
@@ -271,7 +271,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 9bd1ba9

Please sign in to comment.