HOR-3676
This commit is contained in:
@@ -232,7 +232,6 @@ try {
|
||||
processWorkspace();
|
||||
break;
|
||||
case 'ldapcron':
|
||||
require_once(PATH_HOME . 'engine' . PATH_SEP . 'classes' . PATH_SEP . 'class.ldapAdvanced.php');
|
||||
require_once(PATH_HOME . 'engine' . PATH_SEP . 'methods' . PATH_SEP . 'services' . PATH_SEP . 'ldapadvanced.php');
|
||||
|
||||
$ldapadvancedClassCron = new ldapadvancedClassCron();
|
||||
|
||||
@@ -6,7 +6,8 @@ use ProcessMaker\Core\System;
|
||||
* Implementing pmDynaform library in the running case.
|
||||
*
|
||||
* @package engine.classes
|
||||
*/class PmDynaform
|
||||
*/
|
||||
class PmDynaform
|
||||
{
|
||||
|
||||
public static $instance = null;
|
||||
|
||||
@@ -44,20 +44,29 @@ class EmailServer
|
||||
foreach ($this->arrayFieldDefinition as $key => $value) {
|
||||
$this->arrayFieldNameForException[$value["fieldNameAux"]] = $key;
|
||||
}
|
||||
|
||||
//Define the variables for the logging
|
||||
global $RBAC;
|
||||
} catch (Exception $e) {
|
||||
throw $e;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the default information from the context.
|
||||
*
|
||||
* @global type $RBAC
|
||||
* @return void
|
||||
*/
|
||||
public function getDefaultContextLog()
|
||||
{
|
||||
//Define the variables for the logging
|
||||
global $RBAC;
|
||||
if ($RBAC !== null) {
|
||||
$currentUser = $RBAC->aUserInfo['USER_INFO'];
|
||||
$info = array(
|
||||
'ip' => G::getIpAddress(),
|
||||
'workspace' => (defined("SYS_SYS"))? SYS_SYS : "Workspace undefined",
|
||||
'workspace' => (defined("SYS_SYS")) ? SYS_SYS : "Workspace undefined",
|
||||
'usrUid' => $currentUser['USR_UID']
|
||||
);
|
||||
$this->setContextLog($info);
|
||||
|
||||
|
||||
} catch (Exception $e) {
|
||||
throw $e;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -818,6 +827,7 @@ class EmailServer
|
||||
}
|
||||
|
||||
//Logging the create action
|
||||
$this->getDefaultContextLog();
|
||||
$info = array(
|
||||
'action' => 'Create email server',
|
||||
'messUid'=> $emailServerUid,
|
||||
@@ -988,6 +998,7 @@ class EmailServer
|
||||
}
|
||||
|
||||
//Logging the update action
|
||||
$this->getDefaultContextLog();
|
||||
$info = array(
|
||||
'action' => 'Update email server',
|
||||
'messUid' => $emailServerUid,
|
||||
@@ -1049,6 +1060,7 @@ class EmailServer
|
||||
\EmailServerPeer::doDelete($criteria);
|
||||
|
||||
//Logging the delete action
|
||||
$this->getDefaultContextLog();
|
||||
$info = array(
|
||||
'action' => 'Delete email server',
|
||||
'messUid' => $emailServerUid
|
||||
|
||||
Reference in New Issue
Block a user