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

Enrol users dialog no longer shows user emails

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Set up

      1. Login as admin
      2. Create 2 users with same first and last name, but different email address
      3. Create 1 user with long first and last name and content in "Department" and "Institution" fields
      4. Create a course and enrol a teacher

      Scenario 1

      1. Login as admin
      2. Access to "Users > Permissions > User policies"
      3. Check (if not checked) "Email address", "Department" and "Institution" at "Show user identity" parameter
      4. Login as teacher
      5. Access to a course
      6. Go to Participants page
      7. Try to enrol some of the users created by the admin during set up. So, search them in "Select users"
        • CHECK email address for the users appears next to first and last name and you are able to distinguish them thanks to this information
        • CHECK user selector suggestion content (specially the longest one) is shown correctly for Boost and Clean themes

       

      Scenario 2

      1. Login as admin
      2. Access to "Users > Permissions > User policies"
      3. Uncheck "Email address", "Department" and "Institution" at "Show user identity" parameter
      4. Login as teacher
      5. Access to a course
      6. Go to Participants page
      7. Try to enrol some of the users created by the admin during set up. So, search them in "Select users"
        • CHECK email address for the users does NOT appear next to first and last name
        • CHECK user selector suggestion content (specially the longest one) is shown correctly for Boost and Clean themes

       

      Show
      Set up Login as admin Create 2 users with same first and last name, but different email address Create 1 user with long first and last name and content in "Department" and "Institution" fields Create a course and enrol a teacher Scenario 1 Login as admin Access to "Users > Permissions > User policies" Check (if not checked) "Email address", "Department" and "Institution" at "Show user identity" parameter Login as teacher Access to a course Go to Participants page Try to enrol some of the users created by the admin during set up. So, search them in "Select users" CHECK email address for the users appears next to first and last name and you are able to distinguish them thanks to this information CHECK user selector suggestion content (specially the longest one) is shown correctly for Boost and Clean themes   Scenario 2 Login as admin Access to "Users > Permissions > User policies" Uncheck "Email address", "Department" and "Institution" at "Show user identity" parameter Login as teacher Access to a course Go to Participants page Try to enrol some of the users created by the admin during set up. So, search them in "Select users" CHECK email address for the users does NOT appear next to first and last name CHECK user selector suggestion content (specially the longest one) is shown correctly for Boost and Clean themes  
    • Affected Branches:
      MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-60830-master

      Description

      After Moodle 3.4 update, Enrol Users dialogue does not show user emails anymore. This makes impossible to differentiate between users with same names. I understand that you can search by email. But that's not how people tend to work with enrolments.

      WORKAROUND:

      To add a mail field, go to enrol/externallib.php:456, and append 'email' to the $requiredfields array. The email will appear next to each user like a charm.

      $requiredfields = ['id', 'fullname', 'email', 'profileimageurl', 'profileimageurlsmall'];

        Attachments

        1. enrol_boost_scrooll.png
          enrol_boost_scrooll.png
          48 kB
        2. enrol_boost.png
          enrol_boost.png
          79 kB
        3. enrol_clean.png
          enrol_clean.png
          68 kB
        4. extra_fields_display_issue.png
          extra_fields_display_issue.png
          40 kB
        5. image-2017-11-29-14-07-19-620.png
          image-2017-11-29-14-07-19-620.png
          293 kB
        6. Screen Shot 2017-11-16 at 12.01.29.png
          Screen Shot 2017-11-16 at 12.01.29.png
          24 kB

          Issue Links

            Activity

              People

              • Votes:
                2 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  15/Jan/18