diff --git a/local/iomad_settings/lang/en/local_iomad_settings.php b/local/iomad_settings/lang/en/local_iomad_settings.php index d023ec658e4..ab4881a45a8 100644 --- a/local/iomad_settings/lang/en/local_iomad_settings.php +++ b/local/iomad_settings/lang/en/local_iomad_settings.php @@ -41,7 +41,9 @@ $string['iomadcertificate_borderdesc'] = 'This is the default border image used for the IOMAD Company certificate type. You can override it in the company edit pages. The uploaded image should be 800 pixels x 604 pixels.'; $string['iomadcertificate_watermarkdesc'] = 'This is the default watermark image used for the IOMAD Company certificate type. You can override it in the company edit pages. The uploaded image should be no more than 800 pixels x 604 pixels.'; $string['iomad_allow_username'] = 'Can specify username'; -$string['iomad_allow_username_help'] = 'Selecting this will allow the username field to be presented when creating accounts. This will supercede the use email address as username setting.'; +$string['iomad_allow_username_help'] = 'Selecting this will allow the username field to be presented when creating accounts. This will supersede the use email address as username setting.'; +$string['iomad_downloaddetails'] = 'Download activity details in course completion report.'; +$string['iomad_downloaddetails_help'] = 'Selecting this will download all of the details of the course completion criteria for the user as well as their status. Without this selected only their status will be included.'; $string['iomad_hidevalidcourses'] = 'Show only current course results in reports as default'; $string['iomad_hidevalidcourses_help'] = 'This changes the display of the completion reports so that it only shows current course results (ones which have not yet expired or have no expiry) by default.'; $string['iomad_max_list_classrooms'] = 'Maximum listed classrooms'; diff --git a/local/iomad_settings/settings.php b/local/iomad_settings/settings.php index 7bc394bbec2..92386bae202 100644 --- a/local/iomad_settings/settings.php +++ b/local/iomad_settings/settings.php @@ -86,6 +86,11 @@ get_string('iomad_showcharts', 'local_iomad_settings'), 1)); + $settings->add(new admin_setting_configcheckbox('iomad_downloaddetails', + get_string('iomad_downloaddetails', 'local_iomad_settings'), + get_string('iomad_downloaddetails_help', 'local_iomad_settings'), + 1)); + $settings->add(new admin_setting_configcheckbox('iomad_useicons', get_string('iomad_useicons', 'local_iomad_settings'), get_string('iomad_useicons', 'local_iomad_settings'), diff --git a/local/iomad_settings/version.php b/local/iomad_settings/version.php index 9319a0e30ba..924852b7879 100644 --- a/local/iomad_settings/version.php +++ b/local/iomad_settings/version.php @@ -23,5 +23,5 @@ $plugin->release = '4.2.7 (Build: 20240422)'; // Human-friendly version name $plugin->component = 'local_iomad_settings'; -$plugin->version = 2024041900; // The (date) version of this plugin. +$plugin->version = 2024042600; // The (date) version of this plugin. $plugin->requires = 2019052000; // Requires this Moodle version. diff --git a/local/report_completion/index.php b/local/report_completion/index.php index 9aefa82460c..9625bbef592 100644 --- a/local/report_completion/index.php +++ b/local/report_completion/index.php @@ -782,7 +782,7 @@ $completionsqlselect = ""; // Get the completion information if we need it. - if ($table->is_downloading() && $courseid != 1) { + if ($table->is_downloading() && $courseid != 1 && $CFG->iomad_downloaddetails) { // Get the course completion criteria. $info = new completion_info(get_course($courseid)); $coursecompletioncrits = $info->get_criteria(null);