Affects Version/s: 3.1.4, 3.2, 3.3
Component/s: Grading methods
Affected Branches:MOODLE_31_STABLE, MOODLE_32_STABLE, MOODLE_33_STABLE
Fixed Branches:MOODLE_31_STABLE, MOODLE_32_STABLE
Pull from Repository:
Pull Master Branch:wip-
Pull Master Diff URL:
When creating a frequently used question that has special chars, those special chars are being escaped twice - this is because they are used with a mustache template
STEPS TO REPLICATE
Log onto Moodle Site
Navigate to a course
Create a new assignment/advanced forum that uses marking guide
Define marking guide if needed.
Add frequently used comments that contain special chars.
View assignment/advanced forum in Joule Grader/Moodler Grader.
View the Frequent Comments.
Special characters are not displayed. The HTML code for the characters are displayed.
The HTML Code should not be shown it should be the actual special character that is being displayed.
Reason for bug:
public function criterion_template
$commentoption->description = s($comment['description']); <- escaping prior to template