From 7976fa47cd5c74a6950f1e101a3cf424f79e84bf Mon Sep 17 00:00:00 2001 From: Amaia Anabitarte Date: Wed, 14 May 2025 13:33:24 +0200 Subject: [PATCH] MDL-85435 course: Render HTML in activity overview name mustache --- .../templates/local/overview/activityname.mustache | 2 +- course/tests/behat/course_overview.feature | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/course/format/templates/local/overview/activityname.mustache b/course/format/templates/local/overview/activityname.mustache index 5f05b8c628b..746587e0624 100644 --- a/course/format/templates/local/overview/activityname.mustache +++ b/course/format/templates/local/overview/activityname.mustache @@ -30,7 +30,7 @@ }}
{{#sectiontitle}}
diff --git a/course/tests/behat/course_overview.feature b/course/tests/behat/course_overview.feature index 638609591e2..ed3823134a6 100644 --- a/course/tests/behat/course_overview.feature +++ b/course/tests/behat/course_overview.feature @@ -301,3 +301,15 @@ Feature: Users can access the course activities overview page And I should see "-" in the "Activity 2" "table_row" When I am on the "Course 1" "course > activities > lesson" page logged in as "teacher1" And I should not see "Grade" in the "lesson_overview_collapsible" "region" + + Scenario: Activities name is properly filtered and rendered + Given the following config values are set as admin: + | formatstringstriptags | 0 | + And the following "activity" exists: + | activity | assign | + | course | C1 | + | section | 1 | + | idnumber | mathjax | + | name | Announcements$$(a+b)=2$$$$(a+b)=2$$ | + When I am on the "Course 1" "course > activities > assign" page logged in as "teacher1" + Then I should not see "span" in the "assign_overview_collapsible" "region"