mirror of
https://github.com/PlagiarismCheck/moodle-plagiarism_pchkorg.git
synced 2024-12-22 04:10:07 +00:00
v3.15.7 Fix issue with saving Enable AI Detector parameter
This commit is contained in:
parent
2cdec1dc95
commit
03400bf37f
6
lib.php
6
lib.php
@ -93,6 +93,11 @@ function plagiarism_pchkorg_coursemodule_standard_elements($formwrapper, $mform)
|
|||||||
)) {
|
)) {
|
||||||
$mform->setDefault('pchkorg_student_can_see_widget', 1);
|
$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 (null === $cm) {
|
||||||
if (!isset($exportedvalues['pchkorg_module_use'])
|
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'),
|
get_string('pchkorg_check_ai', 'plagiarism_pchkorg'),
|
||||||
array(get_string('no'), get_string('yes'))
|
array(get_string('no'), get_string('yes'))
|
||||||
);
|
);
|
||||||
$mform->setDefault('pchkorg_check_ai', 1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,9 +26,9 @@ defined('MOODLE_INTERNAL') || die();
|
|||||||
if (!isset($plugin)) {
|
if (!isset($plugin)) {
|
||||||
$plugin = new stdClass();
|
$plugin = new stdClass();
|
||||||
}
|
}
|
||||||
$plugin->version = 2024102819;
|
$plugin->version = 2024112615;
|
||||||
$plugin->requires = 2020061501; // Requires Moodle 3.9 .
|
$plugin->requires = 2020061501; // Requires Moodle 3.9 .
|
||||||
$plugin->release = 'v3.15.6';
|
$plugin->release = 'v3.15.7';
|
||||||
$plugin->component = 'plagiarism_pchkorg';
|
$plugin->component = 'plagiarism_pchkorg';
|
||||||
$plugin->maturity = MATURITY_STABLE;
|
$plugin->maturity = MATURITY_STABLE;
|
||||||
$plugin->dependencies = array(
|
$plugin->dependencies = array(
|
||||||
|
Loading…
Reference in New Issue
Block a user