Permalink
Browse files

MDL-30652 SCORM Fixing report prefrences display for interactions report

  • Loading branch information...
1 parent 2af0e47 commit 85e976e5148a80add66ac8159791ebfe6c612f8e @ankitagarwal ankitagarwal committed Jan 3, 2012
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();

0 comments on commit 85e976e

Please sign in to comment.