Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-16041 "Grade of new tests are zero!" no longer displaying graphs …

…of grades for ungraded quizzes.
  • Loading branch information...
commit 64b0c54d0f2db9eb39e04f84638e07e45de3b0a2 1 parent 37cd574
jamiesensei authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mod/quiz/report/overview/report.php
View
2  mod/quiz/report/overview/report.php
@@ -664,7 +664,7 @@ function display($quiz, $cm, $course) {
$mform->set_data($displayoptions +compact('detailedmarks', 'pagesize'));
$mform->display();
//should be quicker than a COUNT to test if there is at least one record :
- if (get_records('quiz_grades', 'quiz', $quiz->id, '', '*', 0, 1)){
+ if ($showgrades && get_records('quiz_grades', 'quiz', $quiz->id, '', '*', 0, 1)){
$imageurl = $CFG->wwwroot.'/mod/quiz/report/overview/overviewgraph.php?id='.$quiz->id;
print_heading(get_string('overviewreportgraph', 'quiz_overview'));
echo '<div class="mdl-align"><img src="'.$imageurl.'" alt="'.get_string('overviewreportgraph', 'quiz_overview').'" /></div>';
Please sign in to comment.
Something went wrong with that request. Please try again.