PMC-1094
This commit is contained in:
@@ -1,28 +1,27 @@
|
||||
<?php
|
||||
if (isset( $_POST['form'] ))
|
||||
<?php
|
||||
if (isset( $_POST['form'] ))
|
||||
$sValue = $_POST['form']; //For old processmap
|
||||
else
|
||||
$sValue = $_POST;
|
||||
|
||||
unset( $sValue['SAVE'] );
|
||||
if (! isset( $sValue['CT_DERIVATION_HISTORY'] )) {
|
||||
$sValue['CT_DERIVATION_HISTORY'] = 0;
|
||||
}
|
||||
if (! isset( $sValue['CT_MESSAGE_HISTORY'] )) {
|
||||
$sValue['CT_MESSAGE_HISTORY'] = 0;
|
||||
}
|
||||
require_once 'classes/model/CaseTracker.php';
|
||||
$oCaseTracker = new CaseTracker();
|
||||
$oCaseTracker->update( $sValue );
|
||||
|
||||
$infoProcess = new Process();
|
||||
$resultProcess = $infoProcess->load($sValue['PRO_UID']);
|
||||
|
||||
if($sValue['CT_DERIVATION_HISTORY'] == 1) {
|
||||
$type[] = "Routing History";
|
||||
}
|
||||
if($sValue['CT_MESSAGE_HISTORY'] == 1) {
|
||||
$type[] = "Messages History";
|
||||
}
|
||||
G::auditLog('CaseTrackers','Save Case Tracker Properties ('.$sValue['CT_MAP_TYPE'].' - '.implode(', ',$type).') in Process "'.$resultProcess['PRO_TITLE'].'"');
|
||||
|
||||
else
|
||||
$sValue = $_POST;
|
||||
|
||||
unset( $sValue['SAVE'] );
|
||||
if (! isset( $sValue['CT_DERIVATION_HISTORY'] )) {
|
||||
$sValue['CT_DERIVATION_HISTORY'] = 0;
|
||||
}
|
||||
if (! isset( $sValue['CT_MESSAGE_HISTORY'] )) {
|
||||
$sValue['CT_MESSAGE_HISTORY'] = 0;
|
||||
}
|
||||
require_once 'classes/model/CaseTracker.php';
|
||||
$oCaseTracker = new CaseTracker();
|
||||
$oCaseTracker->update( $sValue );
|
||||
|
||||
$infoProcess = new Process();
|
||||
$resultProcess = $infoProcess->load($sValue['PRO_UID']);
|
||||
|
||||
if($sValue['CT_DERIVATION_HISTORY'] == 1) {
|
||||
$type[] = "Routing History";
|
||||
}
|
||||
if($sValue['CT_MESSAGE_HISTORY'] == 1) {
|
||||
$type[] = "Messages History";
|
||||
}
|
||||
G::auditLog('CaseTrackers','Save Case Tracker Properties ('.$sValue['CT_MAP_TYPE'].' - '.implode(', ',$type).') in Process "'.$resultProcess['PRO_TITLE'].'"');
|
||||
|
||||
Reference in New Issue
Block a user