This commit is contained in:
Paula Quispe
2018-11-26 14:18:21 -04:00
committed by Ronald Q
parent 23bd360761
commit a1ce5db16e

View File

@@ -3545,10 +3545,12 @@ class Cases
if ($oPMScript->executedOn() === $oPMScript::AFTER_ROUTING) { if ($oPMScript->executedOn() === $oPMScript::AFTER_ROUTING) {
$appUid = !empty($fieldsCase['APPLICATION']) ? $fieldsCase['APPLICATION'] : ''; $appUid = !empty($fieldsCase['APPLICATION']) ? $fieldsCase['APPLICATION'] : '';
if (!empty($appUid)) { if (!empty($appUid)) {
$lastAppFields = $this->loadCase($appUid)['APP_DATA']; //Update $fieldsCase with the last appData
$fieldsTrigger = array_merge($lastAppFields, $fieldsTrigger); $fieldsCase = $this->loadCase($appUid)['APP_DATA'];
} }
} }
//Merge the current appData with variables changed
$fieldsCase = array_merge($fieldsCase, $fieldsTrigger);
//Register the time execution //Register the time execution
$this->arrayTriggerExecutionTime[$trigger['TRI_UID']] = $oPMScript->scriptExecutionTime; $this->arrayTriggerExecutionTime[$trigger['TRI_UID']] = $oPMScript->scriptExecutionTime;
@@ -3567,17 +3569,10 @@ class Cases
); );
} }
/*----------------------------------********---------------------------------*/ /*----------------------------------********---------------------------------*/
//The Code Scanner can be interrupt the execution
if (empty($fieldsTrigger)) {
return $fieldsCase;
} }
return $fieldsTrigger;
} else {
return $fieldsCase; return $fieldsCase;
} }
}
/** /**
* Find keys and values into the appData * Find keys and values into the appData