-
Improvement
-
Resolution: Won't Do
-
Minor
-
None
-
1.9.9, 2.7.1
-
Any
-
MOODLE_19_STABLE, MOODLE_27_STABLE
Current it doesn't appear possible to configure which fields are displayed as "non-advanced" on the"Browse list of users" page (/admin/users.php).
We tend to have very little use of the default field (fullname) since we have a reasonable number of identically named students.
Ideally we would like to be able to reconfigure the fields displayed as default to include the username (and possibly the idnumber) as the basis for searching for users.
As far as I can see the only why to do this would be to change the users.php page to specify the fields as an array, or modify the defaults in user/filters/lib.php.
However since we're trying to not modify the core code if possible I think it would be better if this was configurable via config.php:
<pre>
$CFG->user_filtering_defaults = array('realname'=>0, 'lastname'=>1, 'firstname'=>1, 'email'=>1, 'city'=>1, 'country'=>1,
'confirmed'=>1, 'profile'=>1, 'courserole'=>1, 'systemrole'=>1,
'firstaccess'=>1, 'lastaccess'=>1, 'lastlogin'=>1, 'timemodified'=>1, 'username'=>0, 'auth'=>1, 'mnethostid'=>1);
</pre>
and modify the user/filters/lib.php to:
<pre>
if (!empty($CFG->user_filtering_defaults))
else
{ $fieldnames = array('realname'=>0, 'lastname'=>1, 'firstname'=>1, 'email'=>1, 'city'=>1, 'country'=>1, 'confirmed'=>1, 'profile'=>1, 'courserole'=>1, 'systemrole'=>1, 'firstaccess'=>1, 'lastaccess'=>1, 'lastlogin'=>1, 'timemodified'=>1, 'username'=>0, 'auth'=>1, 'mnethostid'=>1); }</pre>
- has been marked as being related by
-
MDL-30040 Add studentid in user filter
- Closed
-
MDL-37812 admin can set site-wide default settings for user profile fields: Email display, format, digest, Forum subscription & tracking, use HTML editor, Screen reader
- Closed
-
MDL-46665 Add 'idnumber' field to user filter
- Closed