-
Bug
-
Resolution: Fixed
-
Minor
-
3.4.6, 3.5.3, 3.6
-
MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE
-
MOODLE_35_STABLE, MOODLE_36_STABLE
-
MDL-64031-master -
The user fields shown in the Enrol users pop-up should respect the $CFG->showuseridentity setting, even if that includes columns that cannot be chosen in the admin UI. E.g. if you have $CFG->showuseridentity = 'idnumber,username'; in config.php.
However, in https://github.com/moodle/moodle/blob/master/enrol/manual/amd/src/form-potential-user-selector.js#L81, there is a hard-coded list of user fields. That should not be.
The way to access this list of fields to show in addtion to fullname($user) is get_extra_user_fields() in PHP code. That needs to be passed through to the JS somehow.
- has been marked as being related by
-
MDL-60879 Review styling when extra fields are added to users suggestion list
- Closed