Audit Log para todas las opciones del menu contextual del PROCESO
This commit is contained in:
marcelo.cuiza
2015-02-18 17:17:28 -04:00
parent 48ce569e3a
commit 0c525246bf
6 changed files with 78 additions and 32 deletions

View File

@@ -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);

View File

@@ -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)

View File

@@ -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'].'"');