BUG 15243 "Email Notification from Subprocess" SOLVED
- Email Notification from Subprocess. - Problema resuelto, cuando se tiene un subproceso que tiene notificacion en la ultima tarea y este debe retornar al proceso principal, entonces la notificacion se enviara al usuario del proceso principal.
This commit is contained in:
@@ -3970,7 +3970,7 @@ class Cases
|
||||
if (SubApplicationPeer::doCount($oCriteria2) > 0) {
|
||||
G::LoadClass('derivation');
|
||||
$oDerivation = new Derivation();
|
||||
$oDerivation->verifyIsCaseChild($sApplicationUID);
|
||||
$oDerivation->verifyIsCaseChild($sApplicationUID, $iIndex);
|
||||
}
|
||||
|
||||
//update searchindex
|
||||
|
||||
@@ -854,14 +854,15 @@ class Derivation
|
||||
);
|
||||
$this->derivate( $currentDelegation2, $nextDelegations2 );
|
||||
|
||||
if($delIndex > 0 ) {
|
||||
// Send notifications - Start
|
||||
$oUser = new Users();
|
||||
$aUser = $oUser->load($appFields["CURRENT_USER_UID"]);
|
||||
|
||||
$aUser = $oUser->load($appFields["APP_DATA"]["USER_LOGGED"]);
|
||||
$sFromName = $aUser["USR_FIRSTNAME"] . " " . $aUser["USR_LASTNAME"] . ($aUser["USR_EMAIL"] != "" ? " <" . $aUser["USR_EMAIL"] . ">" : "");
|
||||
|
||||
try {
|
||||
$oCase->sendNotifications($appFields["APP_DATA"]["TASK"],
|
||||
$oCase->sendNotifications($appFields["TAS_UID"],
|
||||
$nextDelegations2,
|
||||
$appFields["APP_DATA"],
|
||||
$sApplicationUID,
|
||||
@@ -877,6 +878,7 @@ class Derivation
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* getDerivatedCases
|
||||
* get all derivated cases and subcases from any task,
|
||||
|
||||
Reference in New Issue
Block a user