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

Empty Username column (+notices) on Participants page if username is in showuseridentity fields

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      1. Add the "username" column to your $CFG->showuseridentity variable (must be in config.php, because the "Username" field is not shown in the admin interface by default).
      2. As an administrator, navigate into a course with one or more enrolled users and go to "Participants"
      3. Make sure that all enrolled users exhibit a username.

      Show
      1. Add the "username" column to your $CFG->showuseridentity variable (must be in config.php, because the "Username" field is not shown in the admin interface by default). 2. As an administrator, navigate into a course with one or more enrolled users and go to "Participants" 3. Make sure that all enrolled users exhibit a username.
    • Affected Branches:
      MOODLE_34_STABLE, MOODLE_35_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE
    • Pull Master Branch:
      MDL-61549-master

      Description

      In our production system, the username column is part of $CFG->showuseridentity. Therefore, (accordingly privileged) users can see a Username column on the participants page (/user/index.php?courseid=xxx). Until Moodle 3.3, that column was filled with respective usernames. However, starting with Moodle 3.4, that column is empty. With the according development settings, PHP notices are displayed as well:

      {Notice: Undefined property: stdClass::$username in <snip>/user/classes/participants_table.php on line 420

      For organisational reasons we need the contents of the username column to be displayed in Moodle 3.4 as well.

        Attachments

        1. 1.PNG
          76 kB
          Janelle Barcega

          Issue Links

            Activity

              People

              Assignee:
              jan.dagefoerde Jan Dageförde
              Reporter:
              jan.dagefoerde Jan Dageförde
              Peer reviewer:
              Sara Arjona (@sarjona) Sara Arjona (@sarjona)
              Integrator:
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Tester:
              Janelle Barcega Janelle Barcega
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona), Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              5 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                19/Mar/18

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 15 minutes
                  15m