Merged in bugfix/PMCORE-3928-A (pull request #8523)

PMCORE-3928 `Hide Active Session Warning` disabled is not saved in the processmaker log

Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
Roly Gutierrez
2022-08-17 18:45:44 +00:00
committed by Julio Cesar Laura Avendaño

View File

@@ -988,8 +988,13 @@ class WebEntryEvent
$cnn->commit(); $cnn->commit();
//log register //log register
if ($arrayData['WE_HIDE_ACTIVE_SESSION_WARNING'] === '1') { $onlyGenerateLink = isset($arrayData['EXTRA']) && isset($arrayData['EXTRA']['generateLink']);
Log::channel(':webEntry')->info('Enable hide active session warning', Bootstrap::context()); if ($arrayData['WE_HIDE_ACTIVE_SESSION_WARNING'] === '1' &&
$arrayData['WE_AUTHENTICATION'] === 'LOGIN_REQUIRED' &&
!$onlyGenerateLink
) {
$context = Bootstrap::context(['usrUid' => $userUidUpdater]);
Log::channel(':webEntry')->info('Hide Active Session Warning', $context);
} }
//Set WEE_TITLE //Set WEE_TITLE