]> git.mjollnir.org Git - moodle.git/commitdiff
For the overview report : MDL-14199 "Option to only show / export final grade" and...
authorjamiesensei <jamiesensei>
Tue, 6 May 2008 18:04:03 +0000 (18:04 +0000)
committerjamiesensei <jamiesensei>
Tue, 6 May 2008 18:04:03 +0000 (18:04 +0000)
mod/quiz/report/overview/report.php

index 188530c38092c74a1f2b3a501b9bff89e353d696..895aed5d34c218d8bbedd23da3cfaa121ba49a42 100644 (file)
@@ -607,17 +607,18 @@ document.getElementById("noscriptmenuaction").style.display = "none";
                     echo "</td>\n";
                     echo '</tr></table>';
                 }
-            } 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'));