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

JSON Data format: Data loss when the User profile field contains the number and "_"

XMLWordPrintable

    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • MDL-76070-master
    • Hide

      Initial setup

      1. Log in as admin
      2. Navigate to Site Administrations > Users > Accounts > User profile fields.
      3. Click "Create a new profile field".
      4. Click "Checkbox".
      5. Fill the form with the below information:
        • Short name: check1
        • Name: Check 1
      6. Click "Save changes".
      7. Repeat steps 3 to 6 with the below information:
        • Short name: check2
        • Name: Check 2
      8. Repeat steps 3 to 6 with the below information:
        • Short name: check_2
        • Name: Check 3
      9. Verify that you will see 3 custom profile fields called: Check 1, Check 2 and Check 3.

      Testing

      1. Open the User profile menu.
      2. Click on Profile.
      3. Click on Edit profile.
      4. Expand Other fields.
      5. Fill the form with the below information:
        • Check 1: checked.
        • Check 2: unchecked.
        • Check 3: checked.
      6. Navigate to Site Administrations > Users > Accounts > Bulk user actions.
      7. Add the admin user to the selected section.
      8. Select "Download" in the "With selected users..." select box.
      9. Click Go.
      10. Select "Javascript Object Notation (.json)" in the "Export users as" select box.
      11. Click Download.
      12. Open the downloaded file.
      13. Verify that you will see 3 keys and values as below:
        • Key Value
          profilefieldcheck1 1
          profilefieldcheck2 0
          profilefieldcheck_2 1

       

      Note: Feel free to repeat the whole test with other profile field types: Date/Time, Text input...

      Show
      Initial setup Log in as admin Navigate to Site Administrations > Users > Accounts > User profile fields. Click "Create a new profile field". Click "Checkbox". Fill the form with the below information: Short name: check1 Name: Check 1 Click "Save changes". Repeat steps 3 to 6 with the below information: Short name: check2 Name: Check 2 Repeat steps 3 to 6 with the below information: Short name: check_2 Name: Check 3 Verify that you will see 3 custom profile fields called: Check 1 , Check 2 and Check 3 . Testing Open the User profile menu. Click on Profile. Click on Edit profile. Expand Other fields. Fill the form with the below information: Check 1: checked. Check 2: unchecked . Check 3: checked . Navigate to Site Administrations > Users > Accounts > Bulk user actions. Add the admin user to the selected section. Select "Download" in the "With selected users..." select box. Click Go. Select "Javascript Object Notation (.json)" in the "Export users as" select box. Click Download. Open the downloaded file. Verify that you will see 3 keys and values as below: Key Value profilefieldcheck1 1 profilefieldcheck2 0 profilefieldcheck_2 1   Note: Feel free to repeat the whole test with other profile field types: Date/Time, Text input...
    • 0
    • Team Hedgehog 4.1 pre 1.1, Team Hedgehog Sprint 1.1

      If a user uses a short name for profile fields that contain a number, for example, join_date10, the data using that field will not be displayed

        1. master_1_MDL-76070.png
          master_1_MDL-76070.png
          79 kB
        2. master_2_MDL-76070.png
          master_2_MDL-76070.png
          67 kB
        3. v400_1_MDL-76070.png
          v400_1_MDL-76070.png
          35 kB
        4. v400_2_MDL-76070.png
          v400_2_MDL-76070.png
          66 kB

            meirza.arson@moodle.com Meirza
            meirza.arson@moodle.com Meirza
            Huong Nguyen Huong Nguyen
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            John Edward Pedregosa John Edward Pedregosa
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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