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

Custom profile field values incorrect sent through format_text when enrolling users

XMLWordPrintable

    • MOODLE_311_STABLE
    • MOODLE_400_STABLE
    • Hide
      1. Go to Admin -> Users -> Accounts -> User profile fields, create a new 'text' field called 'Name of pet' with length up to 100 chars.
      2. Go to Admin -> Users -> Permissions -> User policies and turn on 'Name of pet' in the 'Show user identity' setting.
      3. Create a new user account with name 'Sam Student', and 'Name of pet' set to 'Moodle'.
      4. Ensure that the glossary filter is enabled in the admin settings by navigating to Plugins -> Filters -> Manage filters
      5. Create a course.
      6. Add a glossary to that course (set to be the main glossary, and auto-link).
      7. Add a glossary entry for 'Moodle', with a description like 'Moodle is the most awesome VLE'. Remember to mark as checked "This entry should be automatically linked".
      8. In the course, go to Participants, and click the 'Enrol' button to open the popup.
      9. Type 'Sam' into the search box.

      Expected result: In the user fields displayed, 'Moodle' should not be displayed with glossary link.

       

      Also, the unit test test_filter_display_data added in user/profile/field/text should pass.

      Show
      Go to Admin -> Users -> Accounts -> User profile fields, create a new 'text' field called 'Name of pet' with length up to 100 chars. Go to Admin -> Users -> Permissions -> User policies and turn on 'Name of pet' in the 'Show user identity' setting. Create a new user account with name 'Sam Student', and 'Name of pet' set to 'Moodle'. Ensure that the glossary filter is enabled in the admin settings by navigating to Plugins -> Filters -> Manage filters Create a course. Add a glossary to that course (set to be the main glossary, and auto-link). Add a glossary entry for 'Moodle', with a description like 'Moodle is the most awesome VLE'. Remember to mark as checked "This entry should be automatically linked". In the course, go to Participants, and click the 'Enrol' button to open the popup. Type 'Sam' into the search box. Expected result: In the user fields displayed, 'Moodle' should not be displayed with glossary link.   Also, the unit test test_filter_display_data added in user/profile/field/text should pass.

      Quite a lot of setup required for this:

      • Under Admin -> Users -> Accounts -> User profile fields, create a new 'text' field called 'Name of pet' with length up to 100 chars.
      • Go to Admin -> Users -> Permissions -> User policies, and turn on 'Name of pet' in the 'Show user identity' setting.
      • Create a new user account with name 'Sam Student', and 'Name of pet' set to 'Moodle'.
      • Ensure that the glossary filter is enable in the admin settings.
      • Create a course.
      • Add a glossary to that course (set to be the main glossary, and auto-link).
      • Add a glossary entry for 'Moodle', with a description like 'Moodle is the most awesome VLE'.
      • In the course, go to Participants, and click the 'Enrol' button to open the popup.
      • Type 'Sam' into the search box.

      Actual result: HTML source for the 'Moodle' glossary link is visible in the autocomplete drop-down.

      Expected result: ... well, obviously not that!

        1. MDL-75380_master.png
          MDL-75380_master.png
          128 kB
        2. MDL-75380_v400.png
          MDL-75380_v400.png
          128 kB
        3. screenshot-of-the-bug.png
          screenshot-of-the-bug.png
          22 kB

            Anupama Sarjoshi Anupama Sarjoshi
            timhunt Tim Hunt
            Mahmoud Kassaei Mahmoud Kassaei
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Angelia Dela Cruz Angelia Dela Cruz
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 51 minutes
                51m

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