PM-4323 "El template alert_message.html no muestra el..." SOLVED

Issue:
    El template alert_message.html no muestra el "due_date" de la tarea en el correo
Cause:
    Variables no definidas
Solution:
    Se definen las variables
This commit is contained in:
Victor Saisa Lopez
2015-12-09 17:01:20 -04:00
parent d7dc2e3f56
commit 24b149c7a5
3 changed files with 65 additions and 28 deletions

View File

@@ -974,6 +974,8 @@ class Derivation
*/
function derivate(array $currentDelegation, array $nextDelegations, $removeList = true)
{
$arrayDerivationResult = [];
//define this...
if (! defined( 'TASK_FINISH_PROCESS' )) {
define( 'TASK_FINISH_PROCESS', - 1 );
@@ -1081,7 +1083,7 @@ class Derivation
$taskDummy = TaskPeer::retrieveByPK($nextDel["TAS_UID_DUMMY"]);
if (preg_match("/^(?:END-MESSAGE-EVENT|END-EMAIL-EVENT)$/", $taskDummy->getTasType())) {
//Throw Events
$this->throwEventsBetweenElementOriginAndElementDest($currentDelegation["TAS_UID"], $nextDel["TAS_UID_DUMMY"], $appFields, $flagFirstIteration, true);
$this->throwEventsBetweenElementOriginAndElementDest($currentDelegation["TAS_UID"], $nextDel["TAS_UID_DUMMY"], $appFields, $flagFirstIteration, true);
} else {
$this->throwEventsBetweenElementOriginAndElementDest($currentDelegation["TAS_UID"], $nextDel["TAS_UID"], $appFields, $flagFirstIteration, true, $nextDel['ROU_CONDITION']);
}
@@ -1177,10 +1179,14 @@ class Derivation
$flagUpdateCounters = false;
$removeList = false;
$arrayDerivationResult[] = ['DEL_INDEX' => $iNewDelIndex, 'TAS_UID' => $nextDelAux['TAS_UID'], 'USR_UID' => (isset($nextDelAux['USR_UID']))? $nextDelAux['USR_UID'] : ''];
}
break;
default:
$iNewDelIndex = $this->doDerivation($currentDelegation, $nextDel, $appFields, $aSP);
$arrayDerivationResult[] = ['DEL_INDEX' => $iNewDelIndex, 'TAS_UID' => $nextDel['TAS_UID'], 'USR_UID' => (isset($nextDel['USR_UID']))? $nextDel['USR_UID'] : ''];
break;
}
@@ -1335,6 +1341,9 @@ class Derivation
$this->derivate($value["currentDelegation"], $value["nextDelegations"]);
}
}
//Return
return $arrayDerivationResult;
}
function doDerivation ($currentDelegation, $nextDel, $appFields, $aSP = null)