mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 08:22:07 +02:00
MDL-66446 course: Make sure tags are on when logging updated settings
This commit is contained in:
parent
9e4178a465
commit
50987d04ea
@ -2558,7 +2558,7 @@ function update_course($data, $editoroptions = NULL) {
|
||||
// The summary might be very long, we don't wan't to fill up the log record with the full text.
|
||||
$updatedfields[$field] = '(updated)';
|
||||
}
|
||||
} else if ($field == 'tags') {
|
||||
} else if ($field == 'tags' && !empty($CFG->usetags)) {
|
||||
// Tags might not have the same array keys, just check the values.
|
||||
if (array_values($data->$field) !== array_values($value)) {
|
||||
$updatedfields[$field] = $data->$field;
|
||||
|
Loading…
x
Reference in New Issue
Block a user