MDL-72720 logstore: Display config changes as expected

This commit is contained in:
Sara Arjona 2021-10-18 11:30:49 +02:00
parent 731b069c4d
commit 1c8ed2fa2e

View File

@ -60,7 +60,7 @@ class logstore extends base {
if ($haschanged) {
$new = implode(',', array_flip($plugins));
add_to_config_log('tool_logstore_visibility', $oldvalue, $new, $pluginname);
add_to_config_log('tool_logstore_visibility', !$enabled, $enabled, $pluginname);
set_config('enabled_stores', $new, 'tool_log');
// Reset caches.
\core_plugin_manager::reset_caches();