Merge branch 'MDL-65250' of git://github.com/stronk7/moodle
authorJun Pataleta <jun@moodle.com>
Wed, 1 May 2019 08:04:02 +0000 (16:04 +0800)
committerJun Pataleta <jun@moodle.com>
Wed, 1 May 2019 08:04:02 +0000 (16:04 +0800)
course/request.php
mod/scorm/report/interactions/classes/report.php
mod/scorm/report/objectives/classes/report.php

index 34d02d3..e330e1d 100644 (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');
index 41c19fe..f20b8c1 100644 (file)
@@ -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') {
index c8f889a..3f4f99c 100644 (file)
@@ -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') {