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

This commit is contained in:
Roly Gutierrez
2022-08-16 11:10:30 -04:00
parent 9135a175bb
commit 514d0ae2eb

View File

@@ -3,11 +3,13 @@
namespace ProcessMaker\BusinessModel; namespace ProcessMaker\BusinessModel;
use BasePeer; use BasePeer;
use Bootstrap;
use BpmnFlowPeer; use BpmnFlowPeer;
use Content; use Content;
use Criteria; use Criteria;
use Exception; use Exception;
use G; use G;
use Illuminate\Support\Facades\Log;
use ProcessMaker\BusinessModel\Process as BusinessModelProcess; use ProcessMaker\BusinessModel\Process as BusinessModelProcess;
use ProcessMaker\BusinessModel\Validator as BusinessModelValidator; use ProcessMaker\BusinessModel\Validator as BusinessModelValidator;
use ProcessMaker\Core\System; use ProcessMaker\Core\System;
@@ -984,6 +986,11 @@ class WebEntryEvent
$result = $webEntryEvent->save(); $result = $webEntryEvent->save();
$cnn->commit(); $cnn->commit();
//log register
if ($arrayData['WE_HIDE_ACTIVE_SESSION_WARNING'] === '1') {
Log::channel(':webEntry')->info('Enable hide active session warning', Bootstrap::context());
}
//Set WEE_TITLE //Set WEE_TITLE
if (isset($arrayData["WEE_TITLE"])) { if (isset($arrayData["WEE_TITLE"])) {