Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-30652 SCORM Fixing report prefrences display for interactions report

  • Loading branch information...
commit 9f097a7248ff0e6353cbad488f9713f6b4ea00b5 1 parent 8755b6a
@ankitagarwal ankitagarwal authored
Showing with 6 additions and 5 deletions.
  1. +6 −5 mod/scorm/report/interactions/report.php
View
11 mod/scorm/report/interactions/report.php
@@ -583,17 +583,18 @@ function display($scorm, $cm, $course, $download) {
echo '</tr></table>';
}
}
- if (!$download) {
- $mform->set_data(compact('detailedrep', 'pagesize', 'attemptsmode'));
- $mform->display();
- }
} else {
if ($candelete && !$download) {
echo '</div>';
echo '</form>';
+ $table->finish_output();
}
echo '</div>';
- echo $OUTPUT->notification(get_string('noactivity', 'scorm'));
+ }
+ // Show preferences form irrespective of attempts are there to report or not
+ if (!$download) {
+ $mform->set_data(compact('detailedrep', 'pagesize', 'attemptsmode'));
+ $mform->display();
}
if ($download == 'Excel' or $download == 'ODS') {
$workbook->close();
Please sign in to comment.
Something went wrong with that request. Please try again.