mirror of
https://github.com/moodle/moodle.git
synced 2025-07-18 21:01:27 +02:00
MDL-42998: Fix user selection search options autoselectunique.
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user