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

Optional user profile fields not shown in full profile

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      BEFORE UPGRADE

      Prepare student s1 filling all the fields available in his profile with some data.

      1. Enrol teacher t1, student s1 and student s2 in course C1.
      2. As teacher in course C1 look at the s1 profile and verify you can NOT see "phone1, phone2, institution, department, idnumber, address". The same can be tested as admin.
      3. Repeat this verification as student s2 looking at the s1 profile.
      4. As admin select "skype" as "hiddenuserfields" in (Users / Permissions / User policies). Verify "phone1, phone2, institution, department, idnumber, address" are not avaible to be selected as "hiddenuserfields".

      AFTER UPGRADE

      1. As admin verify that fields "phone1, phone2, institution, department, idnumber, address" has been added in "hiddenuserfields" (Users / Permissions / User policies) and they have been automatically selected. The field "skype" is still selected.
      2. As student s2 in course C1 look at the s1 profile and verify you can NOT see the hiddenfields selected.
      3. As teacher t1 or admin look at the s1 profile and verify NOW YOU CAN SEE all the hiddenfields selected.
      4. As admin unselect in hiddenfields "institution, department".
      5. As student s2 in course C1 look at the s1 profile and verify now you can see fields "institution, department".
      Show
      BEFORE UPGRADE Prepare student s1 filling all the fields available in his profile with some data. Enrol teacher t1, student s1 and student s2 in course C1. As teacher in course C1 look at the s1 profile and verify you can NOT see "phone1, phone2, institution, department, idnumber, address". The same can be tested as admin. Repeat this verification as student s2 looking at the s1 profile. As admin select "skype" as "hiddenuserfields" in (Users / Permissions / User policies). Verify "phone1, phone2, institution, department, idnumber, address" are not avaible to be selected as "hiddenuserfields". AFTER UPGRADE As admin verify that fields "phone1, phone2, institution, department, idnumber, address" has been added in "hiddenuserfields" (Users / Permissions / User policies) and they have been automatically selected. The field "skype" is still selected. As student s2 in course C1 look at the s1 profile and verify you can NOT see the hiddenfields selected. As teacher t1 or admin look at the s1 profile and verify NOW YOU CAN SEE all the hiddenfields selected. As admin unselect in hiddenfields "institution, department". As student s2 in course C1 look at the s1 profile and verify now you can see fields "institution, department".
    • Affected Branches:
      MOODLE_35_STABLE, MOODLE_39_STABLE
    • Pull 3.11 Branch:
      MDL-63296-311
    • Pull Master Branch:
      MDL-63296-master

      Description

      As reported in https://moodle.org/mod/forum/discuss.php?d=375471 and reproduced on https://demo.moodle.net (using 3.5.1), certain optional user profile fields are not shown in the full profile.

      Steps to reproduce:

      1. Log in as a user and edit your profile.
      2. Add text to the following optional fields:
        ID number
        Institution
        Department
        Phone
        Mobile phone
        Address
      3. Click the 'Update profile' button.

      Expected result:

      The above profile fields are shown in the full profile for the user themselves and also an admin user and any user with the capability moodle/user:viewalldetails.

      Actual result:

      The above profile fields are not shown at all.

        Attachments

        1. image-2018-09-10-18-29-20-460.png
          image-2018-09-10-18-29-20-460.png
          46 kB
        2. cap1.png
          cap1.png
          126 kB
        3. cap3.png
          cap3.png
          127 kB
        4. cap4.png
          cap4.png
          113 kB
        5. cap2.png
          cap2.png
          133 kB
        6. captura_899.png
          captura_899.png
          96 kB

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              tsala Helen Foster
              Peer reviewer:
              Ilya Tregubov
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              3 Vote for this issue
              Watchers:
              11 Start watching this issue

                Dates

                Created:
                Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 3 minutes
                  1h 3m