mirror of
https://github.com/PlagiarismCheck/moodle-plagiarism_pchkorg.git
synced 2024-12-22 04:10:07 +00:00
Replace null value to zero, when activity is disabled and prop doesnt exist. Version 3.15.4
This commit is contained in:
parent
3a041e6d35
commit
e1000d9384
3
lib.php
3
lib.php
@ -237,6 +237,9 @@ function plagiarism_pchkorg_coursemodule_edit_post_actions($data, $course)
|
||||
foreach ($records as $record) {
|
||||
if ($record->name === $field) {
|
||||
$isfounded = true;
|
||||
if (!isset($data->{$record->name}) || $data->{$record->name} === null) {
|
||||
$data->{$record->name} = 0;
|
||||
}
|
||||
if ($field === 'pchkorg_min_percent' && !$canchangeminpercent) {
|
||||
$DB->delete_records('plagiarism_pchkorg_config', array('id' => $record->id));
|
||||
break;
|
||||
|
@ -26,9 +26,9 @@ defined('MOODLE_INTERNAL') || die();
|
||||
if (!isset($plugin)) {
|
||||
$plugin = new stdClass();
|
||||
}
|
||||
$plugin->version = 2024100814;
|
||||
$plugin->version = 2024102817;
|
||||
$plugin->requires = 2020061501; // Requires Moodle 3.9 .
|
||||
$plugin->release = 'v3.15.3';
|
||||
$plugin->release = 'v3.15.4';
|
||||
$plugin->component = 'plagiarism_pchkorg';
|
||||
$plugin->maturity = MATURITY_STABLE;
|
||||
$plugin->dependencies = array(
|
||||
|
Loading…
Reference in New Issue
Block a user