Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-49742

Give ability to remove sortable fields from showing on Enrolled Users page

    XMLWordPrintable

Details

    • MOODLE_28_STABLE
    • MOODLE_28_STABLE, MOODLE_29_STABLE
    • wip-MDL-49742-master
    • Hide
      1. Go to [Site administration  ► Users  ► Permissions  ► User policies] and make sure that 'Alternative full name format' is set to 'language'.
      2. Visit a course and go to the user enrolment page.
      3. Check that only the first and surname are in the table header to be sorted on (In the names column, this doesn't mean other columns).
      4. Go to [Site administration  ► Users  ► Accounts  ► Browse list of users].
      5. Check that only the first and surname are in the table header to be sorted on (In the names column, this doesn't mean other columns).
      6. Go to [Site administration  ► Users  ► Permissions  ► User policies] and set 'Alternative full name format' to something like 'firstname lastname middlename'.
      7. Visit a course and go to the user enrolment page.
      8. Check that the additional name is also now available to sort on and that the sorting fields are in the same order as the names in the table.
      9. Go to [Site administration  ► Users  ► Accounts  ► Browse list of users].
      10. Check that the additional name is also now available to sort on and that the sorting fields are in the same order as the names in the table.
      11. Go to [Site administration  ► Users  ► Permissions  ► User policies] and set 'Alternative full name format' to 'language'.
      12. Edit lang/en/moodle.php fullnameformat string to '{$a->lastname} {$a->firstname}'.
      13. Visit a course and go to the user enrolment page.
      14. Check that the sortable fields have surname first and then first name.
      15. Go to [Site administration  ► Users  ► Accounts  ► Browse list of users].
      16. Check that the sortable fields have surname first and then first name.

      Test 2:

      1. Modify setting $CFG->showuseridentity to include more fields
      2. Visit a course and go to the user enrolment page.
      3. Make sure that you can filter by additional identity fields
      Show
      Go to [Site administration  ► Users  ► Permissions  ► User policies] and make sure that 'Alternative full name format' is set to 'language'. Visit a course and go to the user enrolment page. Check that only the first and surname are in the table header to be sorted on (In the names column, this doesn't mean other columns). Go to [Site administration  ► Users  ► Accounts  ► Browse list of users] . Check that only the first and surname are in the table header to be sorted on (In the names column, this doesn't mean other columns). Go to [Site administration  ► Users  ► Permissions  ► User policies] and set 'Alternative full name format' to something like 'firstname lastname middlename'. Visit a course and go to the user enrolment page. Check that the additional name is also now available to sort on and that the sorting fields are in the same order as the names in the table. Go to [Site administration  ► Users  ► Accounts  ► Browse list of users] . Check that the additional name is also now available to sort on and that the sorting fields are in the same order as the names in the table. Go to [Site administration  ► Users  ► Permissions  ► User policies] and set 'Alternative full name format' to 'language'. Edit lang/en/moodle.php fullnameformat string to '{$a->lastname} {$a->firstname}'. Visit a course and go to the user enrolment page. Check that the sortable fields have surname first and then first name. Go to [Site administration  ► Users  ► Accounts  ► Browse list of users] . Check that the sortable fields have surname first and then first name. Test 2: Modify setting $CFG->showuseridentity to include more fields Visit a course and go to the user enrolment page. Make sure that you can filter by additional identity fields

    Description

      On the Enrolled Users page of a course, there are sortable fields that can not be removed or hidden: First name - phonetic / Surname - phonetic / Middle name / Alternate name.

      I believe this was added in 2.8 (see: https://tracker.moodle.org/browse/MDL-46921). Great addition if you use those but if not, there is no way to remove them from showing and it takes up precious space and makes it look cluttered.

      Going to Administration/Users/Permissions/User Policies and changing settings here has no effect on removing those listed sortable fields.

      Attachments

        Issue Links

          Activity

            People

              abgreeve Adrian Greeve
              mebenson Melissa Benson
              Simey Lameze Simey Lameze
              David Monllaó David Monllaó
              Ankit Agarwal Ankit Agarwal
              David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo, David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo
              Votes:
              4 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                6/Jul/15