MDL-14216 "Improvements to regrade report - improved reporting of actions and dry run / regrade" if condition around buttons to not output them when downloading table data.

This commit is contained in:
jamiesensei 2008-07-15 07:22:26 +00:00
parent 588d39547d
commit b6943d3731

View file

@ -199,6 +199,9 @@ class quiz_overview_report extends quiz_default_report {
$mform->display();
}
if (!$table->is_downloading()) { //do not print notices when downloading
$countregradeneeded = $this->count_regrade_all_needed($quiz, $groupstudents);
//regrade buttons
if ($currentgroup){
@ -214,7 +217,6 @@ class quiz_overview_report extends quiz_default_report {
$regradealldrylabel = get_string('regradealldry', 'quiz_overview');
$regradealllabel = get_string('regradeall', 'quiz_overview');
}
if (has_capability('mod/quiz:grade', $this->context)){
echo '<div class="mdl-align">';
echo '<form action="'.$reporturl->out(true).'">';
@ -229,7 +231,7 @@ class quiz_overview_report extends quiz_default_report {
echo '</form>';
echo '</div>';
}
}
if (!$nostudents || ($attemptsmode == QUIZ_REPORT_ATTEMPTS_ALL)){
// Print information on the grading method and whether we are displaying
//