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

Remove the columns from the participants page that are not in showuseridentity

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4
    • Fix Version/s: 3.4
    • Component/s: User management
    • Labels:
    • Testing Instructions:
      Hide
      $CFG->showuseridentity and $CFG->hiddenuserfields set to defaults.
      1. Login as a teacher in a course and go to the participants page.
        • Confirm that there is no "Country" nor "City/town" columns in the participants table.
      2. Login as a student in a course and go to the participants page.
        • Confirm that there is no "Country" nor "City/town" columns in the participants table.
      City and country in $CFG->showuseridentity
      1. Login as an admin.
      2. Navigate to Site administration / Users / Permissions / User policies.
      3. Under "Show user identity", tick "City/town" and "Country" and save the changes.
      4. Login as a teacher in a course and go to the participants page.
        • Confirm that you see the "Country" and "City/town" columns in the participants table.
      5. Login as a student in a course and go to the participants page.
        • Confirm that there is no "Country" nor "City/town" columns in the participants table.
      City and country in $CFG->showuseridentity, but are also selected in $CFG->hiddenuserfields as well
      1. Login as an admin.
      2. Navigate to Site administration / Users / Permissions / User policies.
      3. Under "Hide user fields", select City/town and Country and save the changes.
      4. Login as a teacher in a course and go to the participants page.
        • Confirm that you see the "Country" and "City/town" columns in the participants table.
      5. Login as a student in a course and go to the participants page.
        • Confirm that there is no "Country" nor "City/town" columns in the participants table.
      1. Run Behat tests.
        • Confirm that there are no failures regarding to the removed "Country" and "City/town" columns in the participants table.
      Show
      $CFG->showuseridentity and $CFG->hiddenuserfields set to defaults. Login as a teacher in a course and go to the participants page. Confirm that there is no "Country" nor "City/town" columns in the participants table. Login as a student in a course and go to the participants page. Confirm that there is no "Country" nor "City/town" columns in the participants table. City and country in $CFG->showuseridentity Login as an admin. Navigate to Site administration / Users / Permissions / User policies . Under " Show user identity ", tick " City/town " and " Country " and save the changes. Login as a teacher in a course and go to the participants page. Confirm that you see the "Country" and "City/town" columns in the participants table. Login as a student in a course and go to the participants page. Confirm that there is no "Country" nor "City/town" columns in the participants table. City and country in $CFG->showuseridentity, but are also selected in $CFG->hiddenuserfields as well Login as an admin. Navigate to Site administration / Users / Permissions / User policies . Under " Hide user fields ", select City/town and Country and save the changes. Login as a teacher in a course and go to the participants page. Confirm that you see the "Country" and "City/town" columns in the participants table. Login as a student in a course and go to the participants page. Confirm that there is no "Country" nor "City/town" columns in the participants table. Run Behat tests. Confirm that there are no failures regarding to the removed "Country" and "City/town" columns in the participants table.
    • Affected Branches:
      MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE
    • Pull Master Branch:
      MDL-59436-master

      Description

      Participants page randomly lists additional columns for city and country. There is no reason these should not be configurable via showuseridentity.

       

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  13/Nov/17