PM-1585
Audit Log para todas las opciones del menu contextual del PROCESO
This commit is contained in:
@@ -28,8 +28,22 @@ 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'];
|
||||
|
||||
$infoProcess = new Processes();
|
||||
$proFields = $infoProcess->serializeProcess($proUid);
|
||||
$resultProcess = $infoProcess->saveSerializedProcess($proFields);
|
||||
G::auditLog('Events','Delete event in process "'.$resultProcess['PRO_TITLE'].'"');
|
||||
|
||||
$evnUid = $_POST['EVN_UID'];
|
||||
require_once 'classes/model/Event.php';
|
||||
$oEvent = new Event();
|
||||
$oEvent->remove( $evnUid );
|
||||
|
||||
$oEvent->remove( $evnUid );
|
||||
@@ -59,6 +59,10 @@ if ($_POST['form']['EVN_UID'] == '') {
|
||||
*/
|
||||
$oEvent->update( $_POST['form'] );
|
||||
}
|
||||
$infoProcess = new Processes();
|
||||
$proFields = $infoProcess->serializeProcess($_POST['form']['PRO_UID']);
|
||||
$resultProcess = $infoProcess->saveSerializedProcess($proFields);
|
||||
G::auditLog('Events','Save intermediate message "'.$_POST['form']['EVN_DESCRIPTION'].'" in process "'.$resultProcess['PRO_TITLE'].'"');
|
||||
|
||||
function replaceQuotes ($aData)
|
||||
{
|
||||
|
||||
@@ -36,3 +36,18 @@ 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'];
|
||||
|
||||
$infoProcess = new Processes();
|
||||
$proFields = $infoProcess->serializeProcess($proUid);
|
||||
$resultProcess = $infoProcess->saveSerializedProcess($proFields);
|
||||
G::auditLog('Events','Save event in process "'.$resultProcess['PRO_TITLE'].'"');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user