Skip to content

Commit

Permalink
MDL-28222 quiz reports missing context in call to quiz_report_feedbac…
Browse files Browse the repository at this point in the history
…k_for_grade.
  • Loading branch information
timhunt committed Jul 6, 2011
1 parent b149b78 commit 82c07ea
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions mod/quiz/report/attemptsreport.php
Expand Up @@ -469,15 +469,15 @@ public function col_feedbacktext($attempt) {
return '-';
}

if (!$this->is_downloading()) {
return quiz_report_feedback_for_grade(
quiz_rescale_grade($attempt->sumgrades, $this->quiz, false),
$this->quiz->id, $this->context);
} else {
return strip_tags(quiz_report_feedback_for_grade(
quiz_rescale_grade($attempt->sumgrades, $this->quiz, false),
$this->quiz->id));
$feedback = quiz_report_feedback_for_grade(
quiz_rescale_grade($attempt->sumgrades, $this->quiz, false),
$this->quiz->id, $this->context);

if ($this->is_downloading()) {
$feedback = strip_tags($feedback);
}

return $feedback;
}

public function get_row_class($attempt) {
Expand Down

0 comments on commit 82c07ea

Please sign in to comment.