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

User profile fields are broken when having uppercase in shortname

XMLWordPrintable

    • MOODLE_400_STABLE
    • MOODLE_311_STABLE
    • Hide

      Setup

      1. Log in as admin
      2. Navigate to Users > Accounts > User profile fields in site administration
      3. Create a new Text input profile field
        • Short name: food
        • Name: Food
        • Maximum length: 128
      4. Create a second Text input profile field
        • Short name: something_Else
        • Name: Something else
        • Maximum length: 128
      5. Navigate to Users > Permissions > User policies in site administration
      6. Under Show user identity tick the following fields and save changes:
        • Email address
        • Food
        • Something else
      7. Create a new user
        • First name: User
        • Surname: One
        • Email address: firstuser@example.com
        • Food: Lasagna
        • Something else: Potato
      8. Confirm the Browse list of users page shows new user with both custom fields

      Course participants

      1. Create a new course
      2. Enable completion tracking
      3. Enrol test user as a student
      4. Confirm the Participants page shows new user with both custom fields

      Activity completion report (Moodle 4.0 only)

      1. Turn course editing on
      2. Add a label to the course
      3. Log out as admin and log in as student
      4. Go to course and mark label as done
      5. Log out as teacher and log in as admin
      6. Navigate to Reports > Activity completion
      7. Confirm the Activity completion page shows new user with both custom fields
      Show
      Setup Log in as admin Navigate to Users > Accounts > User profile fields in site administration Create a new Text input profile field Short name: food Name: Food Maximum length: 128 Create a second Text input profile field Short name: something_Else Name: Something else Maximum length: 128 Navigate to Users > Permissions > User policies in site administration Under Show user identity tick the following fields and save changes: Email address Food Something else Create a new user First name: User Surname: One Email address: firstuser@example.com Food: Lasagna Something else: Potato Confirm the Browse list of users page shows new user with both custom fields Course participants Create a new course Enable completion tracking Enrol test user as a student Confirm the Participants page shows new user with both custom fields Activity completion report (Moodle 4.0 only) Turn course editing on Add a label to the course Log out as admin and log in as student Go to course and mark label as done Log out as teacher and log in as admin Navigate to Reports > Activity completion Confirm the Activity completion page shows new user with both custom fields

      While testing MDL-72612 Gladys found existing bug - If you create userprofile field and have uppercase in its short name you will get warning on pages that display that field (like enrolled users if you add that field in user policies)

            pholden Paul Holden
            ilyatregubov Ilya Tregubov
            Amaia Anabitarte Amaia Anabitarte
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Huong Nguyen Huong Nguyen
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours, 5 minutes
                4h 5m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.