Merge branch 'MDL-65250' of git://github.com/stronk7/moodle
This commit is contained in:
+1
-1
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user