PM-2633 Admin>Settings>Logs>Audit Log: Al importar un proceso el audit log no indica que lo importa indica que se creo el proceso.
Causa : Llamada al metodo Auditlog en esas situaciones(Importació Eliminacióe procesos). Solució Agregar el registro para el Auditlog en situaciones de Importació Eliminación procesos .pm, .pmx y bpmn.
This commit is contained in:
@@ -52,6 +52,7 @@ try {
|
||||
$resp = new StdClass();
|
||||
$resp->status = 0;
|
||||
$resp->msg = 'All process was deleted successfully';
|
||||
//Add Audit Log
|
||||
G::auditLog("DeleteProcess", "Process UID : " . $_POST['PRO_UIDS']);
|
||||
echo G::json_encode($resp);
|
||||
|
||||
|
||||
@@ -225,8 +225,7 @@ if ($action == "uploadFileNewProcess") {
|
||||
//1 -exist process
|
||||
$result->ExistGroupsInDatabase = ""; //"" -Default
|
||||
//0 -Dont exist process
|
||||
//1 -exist process
|
||||
G::auditLog("ImportProcess", " PM -> Process UID : ");
|
||||
//1 -exist process
|
||||
$optionGroupExistInDatabase = isset( $_REQUEST["optionGroupExistInDatabase"] ) ? $_REQUEST["optionGroupExistInDatabase"] : null;
|
||||
|
||||
//!Upload file
|
||||
@@ -257,6 +256,9 @@ if ($action == "uploadFileNewProcess") {
|
||||
$oData = $oProcess->getProcessData( $path . $filename );
|
||||
}
|
||||
|
||||
//Add Audit Log
|
||||
G::auditLog("ImportProcess", " PM -> Process UID : " . $oData->process['PRO_UID']);
|
||||
|
||||
$importer->throwExceptionIfExistsReservedWordsSql($oData);
|
||||
|
||||
//!Upload file
|
||||
@@ -304,6 +306,7 @@ if ($action == "uploadFileNewProcess") {
|
||||
//!data ouput
|
||||
$result->sNewProUid = $sProUid;
|
||||
$result->proFileName = $Fields['PRO_FILENAME'];
|
||||
|
||||
} catch (Exception $e) {
|
||||
$result->response = $e->getMessage();
|
||||
$result->catchMessage = $e->getMessage();
|
||||
|
||||
Reference in New Issue
Block a user