Merged in bugfix/PMC-369 (pull request #6778)

PMC-369

Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
Approved-by: Paula Quispe <paula.quispe@processmaker.com>
This commit is contained in:
Julio Cesar Laura Avendaño
2019-02-12 14:39:19 +00:00
committed by Paula Quispe

View File

@@ -845,7 +845,8 @@ class Derivation
return $arrayDerivationResult;
}
/** Route the case
/**
* Route the case
* If need to create another thread we can execute the doDerivate
*
* @param array $currentDelegation
@@ -853,7 +854,11 @@ class Derivation
* @param bool $removeList
*
* @return void
* @throws /Exception
* @throws Exception
*
* @see beforeDerivate()
* @see doDerivation()
* @see verifyIsCaseChild()
*/
function derivate(array $currentDelegation, array $nextDelegations, $removeList = true)
{
@@ -1049,6 +1054,9 @@ class Derivation
break;
default:
$iNewDelIndex = $this->doDerivation($currentDelegation, $nextDel, $appFields, $aSP);
//Load Case Data again because the information could be change in method "doDerivation"
$verifyApplication = $this->case->loadCase($currentDelegation['APP_UID']);
$appFields['APP_DATA'] = $verifyApplication['APP_DATA'];
//When the users route the case in the same time
if($iNewDelIndex !== 0){
$arrayDerivationResult[] = [