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

Course short names in Courses node of the nav block are being escaped

    XMLWordPrintable

Details

    • MOODLE_31_STABLE
    • MOODLE_31_STABLE
    • MDL-54609-master
    • Hide
      Setup
      1. Login as admin.
      2. Create a Topics format course and add the special characters & ' " ¢ £ © € ¥ ® < > to the Course short name and the Course full name.
      3. Rename one or more section names of the course to something that contains the above special characters.
      4. Enrol yourself as a teacher so the course appears under 'My courses'.
      AJAX testing
      1. Navigate to the Dashboard.
      2. Expand the My courses node.
        • Confirm that the course gets listed under the My courses node
      3. Check the course's link under the My courses node.
        • Confirm that it is rendered properly and that there are no escaped characters. (i.e. &amp;, &gt;, &lt;)
      4. Check the section name under the course.
        • Confirm that it is rendered properly and that there are no escaped characters. (i.e. &amp;, &gt;, &lt;)
      Course node loaded on page load
      1. Click on the course link.
      2. Check the course's link under the Current course node.
        • Confirm that it is rendered properly and that there are no escaped characters. (i.e. &amp;, &gt;, &lt;)
      3. Check the section name under the course.
        • Confirm that it is rendered properly and that there are no escaped characters. (i.e. &amp;, &gt;, &lt;)

      Do the above tests with the case when $CFG->navshowfullcoursenames is set to Yes and in the case that it is set to No. (Found in Site administration ► Appearance ► Navigation -> Show course full names)

      Show
      Setup Login as admin. Create a Topics format course and add the special characters & ' " ¢ £ © € ¥ ® < > to the Course short name and the Course full name. Rename one or more section names of the course to something that contains the above special characters. Enrol yourself as a teacher so the course appears under 'My courses'. AJAX testing Navigate to the Dashboard. Expand the My courses node. Confirm that the course gets listed under the My courses node Check the course's link under the My courses node. Confirm that it is rendered properly and that there are no escaped characters. (i.e. &amp;, &gt;, &lt; ) Check the section name under the course. Confirm that it is rendered properly and that there are no escaped characters. (i.e. &amp;, &gt;, &lt; ) Course node loaded on page load Click on the course link. Check the course's link under the Current course node. Confirm that it is rendered properly and that there are no escaped characters. (i.e. &amp;, &gt;, &lt; ) Check the section name under the course. Confirm that it is rendered properly and that there are no escaped characters. (i.e. &amp;, &gt;, &lt; ) Do the above tests with the case when $CFG->navshowfullcoursenames is set to Yes and in the case that it is set to No. (Found in Site administration ► Appearance ► Navigation -> Show course full names)

    Description

      When a course's short name contains special characters, they are being escaped when rendered in the Courses node of the navigation block.

      Does not seem to occur in 3.0 below.

      See attached screenshot.

      Attachments

        Issue Links

          Activity

            People

              jpataleta Jun Pataleta
              jpataleta Jun Pataleta
              Mark Nelson Mark Nelson
              David Monllaó David Monllaó
              Jake Dallimore Jake Dallimore
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Clockify

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