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

block_recentlyaccessedcourses displays HTML character codes in course title

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.6, 3.7
    • Fix Version/s: 3.6.3
    • Component/s: Blocks
    • Testing Instructions:
      Hide
      1. Login as admin.
      2. Create/rename a course with an ampersand symbol (&) in the title.
      3. Enrol a user in that course.
      4. Login as this user and view the course.
      5. On the dashboard, add the recentlyaccessedcourses block (if not added before).
      6. View the content in the recentlyaccessedcourses block.
      7. CHECK that the & is displayed instead of the &amp  character.
      Show
      Login as admin. Create/rename a course with an ampersand symbol (&) in the title. Enrol a user in that course. Login as this user and view the course. On the dashboard, add the recentlyaccessedcourses block (if not added before). View the content in the recentlyaccessedcourses block. CHECK that the & is displayed instead of the &amp  character.
    • Affected Branches:
      MOODLE_36_STABLE, MOODLE_37_STABLE
    • Fixed Branches:
      MOODLE_36_STABLE
    • Pull 3.6 Branch:
      MOODLE_36_STABLE
    • Pull Master Branch:
      master

      Description

      Very similar to https://tracker.moodle.org/browse/MDL-59887

      The course titles display eg. &amp instead of just the & symbol, as shown in the screenshot attached.

      To reproduce this issue:
      1. Have a course with an ampersand symbol in the title.
      2. Pick a user and enrol and view the course, so that it will show up in the recentlyaccessedcourses block.
      3. On the dashboard view the recentlyaccessedcourses block, and see that the HTML is displaying the character codes there.

      Implemented a similar one line fix to MDL-59887 :

      master: https://github.com/moodle/moodle/compare/0e1e1e5586a...kristian-94:master

      MOODLE_36_STABLE: https://github.com/moodle/moodle/compare/cc8d7ee698857cd492e470cf23f978d4946b078c...kristian-94:MOODLE_36_STABLE

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  11/Mar/19

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 10 minutes
                  10m