Skip to content

Commit

Permalink
MDL-46223 Improve the display of marking guide validation message
Browse files Browse the repository at this point in the history
  • Loading branch information
mudrd8mz authored and Damyon Wiese committed Jul 9, 2014
1 parent a1ae351 commit 8380722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grade/grading/form/guide/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@ public function render_grading_element($page, $gradingformelement) {
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'));
Expand Down

0 comments on commit 8380722

Please # to comment.