From: jamiesensei Date: Tue, 6 May 2008 18:04:03 +0000 (+0000) Subject: For the overview report : MDL-14199 "Option to only show / export final grade" and... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f4ed09faae121e2dfe174968eb34b47d8403107a;p=moodle.git For the overview report : MDL-14199 "Option to only show / export final grade" and MDL-14198 "Make it clear which student attempt gives the final grade, if the scoring method is first, last or highest score" fixed a small problem I noticed in this patch. --- diff --git a/mod/quiz/report/overview/report.php b/mod/quiz/report/overview/report.php index 188530c380..895aed5d34 100644 --- a/mod/quiz/report/overview/report.php +++ b/mod/quiz/report/overview/report.php @@ -607,17 +607,18 @@ document.getElementById("noscriptmenuaction").style.display = "none"; echo "\n"; echo ''; } - } else if ($download == 'Excel' or $download == 'ODS') { - $workbook->close(); - exit; - } else if ($download == 'CSV') { - exit; } } else { if (!$download) { $table->print_html(); } } + if ($download == 'Excel' or $download == 'ODS') { + $workbook->close(); + exit; + } else if ($download == 'CSV') { + exit; + } if (!$download) { // Print display options $mform->set_data($displayoptions +compact('detailedmarks', 'pagesize'));