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

Course competencies page escapes ampersand and displays as & instead of &

    • MOODLE_405_STABLE, MOODLE_500_STABLE
    • MDL-85415-main_amp_fix
    • Hide

      Steps to reproduce the issue:
      1. Log in as admin.
      2. Go to Site administration > Competencies > Frameworks.
      3. Create a new framework and add a competency to it.
      4. Create a new course.
      5. In the course, go to More > Competencies.
      6. Click "Add competencies to course" and select the one you created.
      7. Return to the course and create an activity of type "Assignment" with the name: `This & That`.
      8. In the assignment settings, under the "Competencies" section, select the competency.
      9. Save and return to the course.
      10. Go again to More > Competencies.

      Expected result:

      • The assignment name should be displayed as:

        This & That

      • It should *not* be rendered as:

        This & That

      Show
      Steps to reproduce the issue: 1. Log in as admin. 2. Go to Site administration > Competencies > Frameworks. 3. Create a new framework and add a competency to it. 4. Create a new course. 5. In the course, go to More > Competencies. 6. Click "Add competencies to course" and select the one you created. 7. Return to the course and create an activity of type "Assignment" with the name: `This & That`. 8. In the assignment settings, under the "Competencies" section, select the competency. 9. Save and return to the course. 10. Go again to More > Competencies. Expected result: The assignment name should be displayed as: This & That It should * not * be rendered as: This & That
    • Hide

      Fails against automated checks.

      Checked MDL-85415 using repository: https://github.com/OshratLuski/moodle.git

      Should these errors be fixed?

      Built on: Wed Jun 4 02:06:55 UTC 2025

      Show
      Fails against automated checks. Checked MDL-85415 using repository: https://github.com/OshratLuski/moodle.git main (2 errors / 4 warnings) [branch: MDL-85415-main_amp_fix | CI Job ] overview (0/1) , phplint (0/0) , phpcs (0/0) , js (0/0) , css (0/0) , phpdoc (0/0) , commit (2/0) , savepoint (0/0) , thirdparty (0/0) , externalbackup (0/0) , grunt (0/0) , shifter (0/0) , mustache (0/3) , gherkin (0/0) , Warn: The MDL-85415 -main_amp_fix branch at https://github.com/OshratLuski/moodle.git has not been rebased recently (>20 days ago). Should these errors be fixed? Built on: Wed Jun 4 02:06:55 UTC 2025

      Steps to reproduce

      • Login as an admin/manager
      • Go to Site administration > Competencies > Competency frameworks
      • Create a framework with a competency
      • Go to Site administration > Courses -> Add a new course
      • Create a new course
      • Within the course go to More > Competencies
      • Click "Add competencies to course" and select the competency that was set up previously
      • Go back to the course and create a new assign activity with the assignment name "This & That" with the new course competency selected under the section "Competencies"
      • Go to More > Competencies from the course page

      Expected: When viewing the course competency the assign activity name should be shown as:

      This & That

      Actual: The assign activity name is shown as:

      This & That

      Reason

      This is due to the mustache template using double instead of triple curly brackets here:
      https://github.com/moodle/moodle/blob/main/admin/tool/lp/templates/course_competencies_page.mustache#L133C97-L133C105

        1. MDL-85415-500.patch
          1 kB
          Oshrat Luski
        2. MDL-85415-405.patch
          1 kB
          Oshrat Luski
        3. MDL-85415-404.patch
          1 kB
          Oshrat Luski
        4. MDL-85415 - english.PNG
          38 kB
          Jayce Birrell
        5. MDL-85415 - spanish.PNG
          40 kB
          Jayce Birrell

            oshiOsh Oshrat Luski
            SimonThornett Simon Thornett
            Jayce Birrell Jayce Birrell
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h

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