$logging variable is updated in config.php file when it is an updated of loging in admin settings page, but the line "'enableSecurityLogging' => true," is deleted when saving the new settings.
My correction: update AdminController by adding the line "'enableSecurityLogging' => $formData['enableSecurityLogging'] === null ? true : false,"
public function updateLogSettings($formData)
{
if (SessionUtil::get('user')['id'] === null) {
Flight::redirect('/login');
}
$user = User::findUserById(SessionUtil::get('user')['id']);
if ($user !== false) {
$newConfig = [
'enableSqlLogging' => $formData['enableSqlLogging'] === null ? false : true,
'enableRequestLogging' => $formData['enableRequestLogging'] === null ? false : true,
'enableAuditLogging' => $formData['enableAuditLogging'] === null ? false : true,
'enableMailLogging' => $formData['enableMailLogging'] === null ? false : true,
'enableSystemLogging' => $formData['enableSystemLogging'] === null ? false : true,
**'enableSecurityLogging' => $formData['enableSecurityLogging'] === null ? true : false,**
];
$logging variable is updated in config.php file when it is an updated of loging in admin settings page, but the line "'enableSecurityLogging' => true," is deleted when saving the new settings.
My correction: update AdminController by adding the line "'enableSecurityLogging' => $formData['enableSecurityLogging'] === null ? true : false,"