MDL-46223 Improve the display of marking guide validation message
authorDavid Mudrák <david@moodle.com>
Wed, 9 Jul 2014 08:21:16 +0000 (10:21 +0200)
committerDamyon Wiese <damyon@moodle.com>
Wed, 9 Jul 2014 08:42:37 +0000 (16:42 +0800)
grade/grading/form/guide/lib.php

index 9569517..5536aca 100644 (file)
@@ -907,7 +907,7 @@ class gradingform_guide_instance extends gradingform_instance {
             if (!empty($this->validationerrors)) {
                 foreach ($this->validationerrors as $id => $err) {
                     $a = new stdClass();
-                    $a->criterianame = $criteria[$id]['shortname'];
+                    $a->criterianame = s($criteria[$id]['shortname']);
                     $a->maxscore = $criteria[$id]['maxscore'];
                     $html .= html_writer::tag('div', get_string('err_scoreinvalid', 'gradingform_guide', $a),
                         array('class' => 'gradingform_guide-error'));