Merge branch 'MDL-65250' of git://github.com/stronk7/moodle

This commit is contained in:
Jun Pataleta
2019-05-01 16:04:02 +08:00
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ require_capability('moodle/course:request', $context);
// Set up the form.
$data = course_request::prepare();
$requestform = new course_request_form($url, compact('editoroptions'));
$requestform = new course_request_form($url);
$requestform->set_data($data);
$strtitle = get_string('courserequest');
@@ -643,7 +643,7 @@ class report extends \mod_scorm\report {
}
// Show preferences form irrespective of attempts are there to report or not.
if (!$download) {
$mform->set_data(compact('detailedrep', 'pagesize', 'attemptsmode'));
$mform->set_data(compact('pagesize', 'attemptsmode'));
$mform->display();
}
if ($download == 'Excel' or $download == 'ODS') {
@@ -642,7 +642,7 @@ class report extends \mod_scorm\report {
}
// Show preferences form irrespective of attempts are there to report or not.
if (!$download) {
$mform->set_data(compact('detailedrep', 'pagesize', 'attemptsmode'));
$mform->set_data(compact('pagesize', 'attemptsmode'));
$mform->display();
}
if ($download == 'Excel' or $download == 'ODS') {