From a89c3553789c8ac425ff2dc1f9049d56366a4a74 Mon Sep 17 00:00:00 2001 From: Roly Gutierrez Date: Wed, 17 Aug 2022 12:45:09 -0400 Subject: [PATCH] PMCORE-3928 `Hide Active Session Warning` disabled is not saved in the processmaker log --- .../src/ProcessMaker/BusinessModel/WebEntryEvent.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/workflow/engine/src/ProcessMaker/BusinessModel/WebEntryEvent.php b/workflow/engine/src/ProcessMaker/BusinessModel/WebEntryEvent.php index 9084da98f..cc96916c3 100644 --- a/workflow/engine/src/ProcessMaker/BusinessModel/WebEntryEvent.php +++ b/workflow/engine/src/ProcessMaker/BusinessModel/WebEntryEvent.php @@ -988,8 +988,13 @@ class WebEntryEvent $cnn->commit(); //log register - if ($arrayData['WE_HIDE_ACTIVE_SESSION_WARNING'] === '1') { - Log::channel(':webEntry')->info('Enable hide active session warning', Bootstrap::context()); + $onlyGenerateLink = isset($arrayData['EXTRA']) && isset($arrayData['EXTRA']['generateLink']); + 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