1
0
mirror of https://github.com/PlagiarismCheck/moodle-plagiarism_pchkorg.git synced 2024-12-21 11:50:08 +00:00

v3.15.7 Fix issue with saving Enable AI Detector parameter

This commit is contained in:
Jane Adelmann 2024-11-26 15:11:14 +02:00
parent 2cdec1dc95
commit 03400bf37f
No known key found for this signature in database
GPG Key ID: 4CCF39DF30B8AF72
2 changed files with 7 additions and 3 deletions

View File

@ -93,6 +93,11 @@ function plagiarism_pchkorg_coursemodule_standard_elements($formwrapper, $mform)
)) {
$mform->setDefault('pchkorg_student_can_see_widget', 1);
}
if (!isset($exportedvalues['pchkorg_check_ai']) || is_null(
$exportedvalues['pchkorg_check_ai']
)) {
$mform->setDefault('pchkorg_check_ai', 1);
}
if (null === $cm) {
if (!isset($exportedvalues['pchkorg_module_use'])
@ -199,7 +204,6 @@ function plagiarism_pchkorg_coursemodule_standard_elements($formwrapper, $mform)
get_string('pchkorg_check_ai', 'plagiarism_pchkorg'),
array(get_string('no'), get_string('yes'))
);
$mform->setDefault('pchkorg_check_ai', 1);
}
}

View File

@ -26,9 +26,9 @@ defined('MOODLE_INTERNAL') || die();
if (!isset($plugin)) {
$plugin = new stdClass();
}
$plugin->version = 2024102819;
$plugin->version = 2024112615;
$plugin->requires = 2020061501; // Requires Moodle 3.9 .
$plugin->release = 'v3.15.6';
$plugin->release = 'v3.15.7';
$plugin->component = 'plagiarism_pchkorg';
$plugin->maturity = MATURITY_STABLE;
$plugin->dependencies = array(