PM-1585
Audit Log para todas las opciones del menu contextual del PROCESO
This commit is contained in:
@@ -28,15 +28,9 @@ if ($RBAC->userCanAccess( 'PM_SETUP' ) != 1) {
|
||||
die();
|
||||
}
|
||||
|
||||
$k = new Criteria('workflow');
|
||||
$k->clearSelectColumns();
|
||||
$k->addSelectColumn(EventPeer::PRO_UID);
|
||||
$k->add(EventPeer::EVN_UID, $_POST['EVN_UID'] );
|
||||
$rs = EventPeer::doSelectRS($k);
|
||||
$rs->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
||||
$rs->next();
|
||||
$row = $rs->getRow();
|
||||
$proUid = $row['PRO_UID'];
|
||||
$eventInstance = new Event();
|
||||
$eventFields = $eventInstance->load($_POST['EVN_UID']);
|
||||
$proUid = $eventFields['PRO_UID'];
|
||||
|
||||
$infoProcess = new Process();
|
||||
$resultProcess = $infoProcess->load($proUid);
|
||||
|
||||
@@ -59,9 +59,9 @@ if ($_POST['form']['EVN_UID'] == '') {
|
||||
*/
|
||||
$oEvent->update( $_POST['form'] );
|
||||
}
|
||||
$infoProcess = new Processes();
|
||||
$proFields = $infoProcess->serializeProcess($_POST['form']['PRO_UID']);
|
||||
$resultProcess = $infoProcess->saveSerializedProcess($proFields);
|
||||
|
||||
$infoProcess = new Process();
|
||||
$resultProcess = $infoProcess->load($_POST['form']['PRO_UID']);
|
||||
G::auditLog('Events','Save intermediate message ('.$_POST['form']['EVN_UID'].') in process "'.$resultProcess['PRO_TITLE'].'"');
|
||||
|
||||
function replaceQuotes ($aData)
|
||||
|
||||
@@ -36,17 +36,11 @@ if ($_POST['form']['TRI_UID'] != '') {
|
||||
|
||||
$oTrigger->update( $_POST['form'] );
|
||||
|
||||
$k = new Criteria('workflow');
|
||||
$k->clearSelectColumns();
|
||||
$k->addSelectColumn(TriggersPeer::PRO_UID);
|
||||
$k->add(TriggersPeer::TRI_UID, $_POST['form']['TRI_UID'] );
|
||||
$rs = TriggersPeer::doSelectRS($k);
|
||||
$rs->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
||||
$rs->next();
|
||||
$row = $rs->getRow();
|
||||
$proUid = $row['PRO_UID'];
|
||||
$triggerFields = $oTrigger->load($_POST['form']['TRI_UID']);
|
||||
$proUid = $triggerFields['PRO_UID'];
|
||||
|
||||
$infoProcess = new Process();
|
||||
$resultProcess = $infoProcess->load($proUid);
|
||||
|
||||
G::auditLog('Events','Save event ('.$_POST['form']['TRI_UID'].') in process "'.$resultProcess['PRO_TITLE'].'"');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user