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

The Textarea data type of User Profile Fields is not showing when locked/freeze

XMLWordPrintable

    • MOODLE_311_STABLE, MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • MDL-76229-master
    • Hide

      Initial setup

      1. Login as admin.
      2. Navigate to  Site administration > Users > Accounts > User profile fields.
      3. Click on Create a new profile field.
      4. Select Text area.
      5. Fill in the form as below:
        • Short name: introduction
        • Name: Introduction
        •  Is this field locked?: Yes
        •  Default value: Switch Atto Editor to HTML mode. Copy and paste the content of the MDL-76229_field_value.txt into the editor.
      6. Press Save changes.

      Testing

      1. Log in as a student.
      2. Open the User profile menu.
      3. Click on Profile.
      4. Verify that there is an Introduction label under the Timezone.
      5. Verify that you will see the Lorem ipsum in format: Bold, Italic, Underline...
      6. Verify that you will see the Equation at the end of the Introduction content.
      7. Click Edit profile.
      8. Expand the Other fields section.
      9. Verify that you will see the Lorem ipsum in format: Bold, Italic, Underline...
      10. Verify that you will see the Equation at the end of the Introduction content.
      11. Verify that you cannot edit the content of the Introduction.
      12. Log out.
      13. Log in as admin.
      14. Open the User profile menu.
      15. Click on Profile.
      16. Click Edit profile.
      17. Expand Other fields section.
      18. Verify that you can use the Atto editor to edit the content of Introduction.

       

      Show
      Initial setup Login as admin. Navigate to  Site administration > Users > Accounts > User profile fields. Click on Create a new profile field. Select Text area. Fill in the form as below: Short name: introduction Name: Introduction  Is this field locked?: Yes  Default value: Switch Atto Editor to HTML mode. Copy and paste the content of the MDL-76229_field_value.txt into the editor. Press Save changes. Testing Log in as a student. Open the User profile menu. Click on Profile. Verify that there is an Introduction label under the Timezone. Verify that you will see the Lorem ipsum in format: Bold, Italic, Underline... Verify that you will see the Equation at the end of the Introduction content. Click Edit profile. Expand the Other fields section. Verify that you will see the Lorem ipsum in format: Bold, Italic, Underline... Verify that you will see the Equation at the end of the Introduction content. Verify that you cannot edit the content of the Introduction. Log out. Log in as admin. Open the User profile menu. Click on Profile. Click Edit profile. Expand Other fields section. Verify that you can use the Atto editor to edit the content of Introduction.  
    • 6
    • Team Hedgehog Sprint 1.1

      We can do mapping User Profile Fields with External DB Auth. When the field has a Locked value in the Lock Value dropdown, it will show the value in the edit profile form but with a disabled state, which means that the user can not edit the value.

      However, if we use the Textarea data type of User Profile Fields and set the Locked value in the External DB Auth, it is not displayed in the edit profile. The expected result is the value is shown but with a disabled state like other fields' behavior.

       

      =============================

      Update: The bug also happens when the Textarea data type field is set to lock.

        1. 2022-11-09_08-35.png
          2022-11-09_08-35.png
          16 kB
        2. 5.locked_textarea.png
          5.locked_textarea.png
          38 kB
        3. 5.locked.png
          5.locked.png
          31 kB
        4. image-2022-11-11-11-23-59-565.png
          image-2022-11-11-11-23-59-565.png
          240 kB
        5. image-2022-11-11-11-24-13-851.png
          image-2022-11-11-11-24-13-851.png
          717 kB
        6. MDL-76229_field_value.txt
          4 kB
        7. MDL-76229_master_1.png
          MDL-76229_master_1.png
          183 kB
        8. MDL-76229_master_2.png
          MDL-76229_master_2.png
          200 kB
        9. MDL-76229_master_3.png
          MDL-76229_master_3.png
          159 kB
        10. MDL-76229_master_4.png
          MDL-76229_master_4.png
          249 kB
        11. MDL-76229_master_5.png
          MDL-76229_master_5.png
          205 kB
        12. MDL-76229_master_6.png
          MDL-76229_master_6.png
          142 kB
        13. MDL-76229_v311_1.png
          MDL-76229_v311_1.png
          265 kB
        14. MDL-76229_v311_2.png
          MDL-76229_v311_2.png
          259 kB
        15. MDL-76229_v311_3.png
          MDL-76229_v311_3.png
          195 kB
        16. MDL-76229_v400_1.png
          MDL-76229_v400_1.png
          193 kB
        17. MDL-76229_v400_2.png
          MDL-76229_v400_2.png
          196 kB
        18. MDL-76229_v400_3.png
          MDL-76229_v400_3.png
          122 kB
        19. MDL-76229_v400_4.png
          MDL-76229_v400_4.png
          246 kB
        20. MDL-76229_v400_5.png
          MDL-76229_v400_5.png
          194 kB
        21. MDL-76229_v400_6.png
          MDL-76229_v400_6.png
          149 kB

            meirza.arson@moodle.com Meirza
            meirza.arson@moodle.com Meirza
            Huong Nguyen Huong Nguyen
            Victor Déniz Falcón Victor Déniz Falcón
            Angelia Dela Cruz Angelia Dela Cruz
            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 - 1 day, 4 hours, 2 minutes
                1d 4h 2m

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