PM-936
Agregar columna en lista de procesos Se agrego la columna que indica la fecha de la ultima modificacion, de cualquier evento o cambio en el proceso Add a column in the list of processes with the last updated date
This commit is contained in:
@@ -96,6 +96,7 @@ switch ($function) {
|
||||
$resultProcessNew = $infoProcess->load($_POST['form']['PRO_UID']);
|
||||
$oldFields = array_diff_assoc($resultProcessOld,$resultProcessNew);
|
||||
$newFields = array_diff_assoc($resultProcessNew,$resultProcessOld);
|
||||
$fields = array();
|
||||
|
||||
if(array_key_exists('PRO_TITLE', $newFields)) {
|
||||
$fields[] = G::LoadTranslation('ID_TITLE');
|
||||
@@ -142,4 +143,13 @@ if(array_key_exists('PRO_TRI_UNPAUSED', $newFields)) {
|
||||
if(array_key_exists('PRO_TYPE_PROCESS', $newFields)) {
|
||||
$fields[] = "Type of process (only owners can edit private processes)";
|
||||
}
|
||||
G::auditLog('EditProcess','Edit fields ('.implode(', ',$fields).') in process "'.$_POST['form']['PRO_TITLE'].'"');
|
||||
G::auditLog('EditProcess','Edit fields ('.implode(', ',$fields).') in process "'.$_POST['form']['PRO_TITLE'].'"');
|
||||
|
||||
if(isset($_POST['form']['PRO_UID']) && !empty($_POST['form']['PRO_UID'])) {
|
||||
$valuesProcess['PRO_UID'] = $_POST['form']['PRO_UID'];
|
||||
$valuesProcess['PRO_UPDATE_DATE'] = date("Y-m-d H:i:s");
|
||||
G::LoadClass('processes');
|
||||
$infoProcess = new Processes();
|
||||
$resultProcess = $infoProcess->updateProcessRow($valuesProcess);
|
||||
$resultProcess = $infoProcess->getProcessRow($_POST['form']['PRO_UID']);
|
||||
}
|
||||
Reference in New Issue
Block a user