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

Saving tag data re-encodes entities each time

    XMLWordPrintable

Details

    • MOODLE_311_STABLE
    • MOODLE_311_STABLE, MOODLE_400_STABLE
    • Hide
      1. Log in as admin
      2. Navigate to own profile
      3. Press Edit profile
      4. Set interests to Fish & Chips and save
      5. Press Edit profile from your profile page again
      6. Confirm the List of interests element shows Fish & Chips
      7. Save page again
      8. Confirm on profile page User details > Interests equals Fish & Chips (without double entity encoding)
      Show
      Log in as admin Navigate to own profile Press Edit profile Set interests to Fish & Chips and save Press Edit profile from your profile page again Confirm the List of interests element shows Fish & Chips Save page again Confirm on profile page User details > Interests equals Fish & Chips (without double entity encoding)

    Description

      If you have a tag such as "Fish & Chips", for instance as a user interest

      Next time you save the user editing form (even when not amending the tags/interests fields), the tag becomes Fish & amp; Chips. Each subsequent edit of this form re-encodes the entities again - e.g. on third edit the tag has become Fish & amp;amp; Chips (excuse the spacing, it's just to get Jira to display actual content)

      Tag management page:

      User profile page:

      Found after spotting these anomalies while working on tags report (MDL-75245)

      Attachments

        Issue Links

          Activity

            People

              pholden Paul Holden
              pholden Paul Holden
              Stevani Andolo Stevani Andolo
              Sara Arjona (@sarjona) Sara Arjona (@sarjona)
              Angelia Dela Cruz Angelia Dela Cruz
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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

                  Clockify

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