diff --git a/user/selector/module.js b/user/selector/module.js index d7c6b85d604..c3792071c7a 100644 --- a/user/selector/module.js +++ b/user/selector/module.js @@ -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 {