diff --git a/workflow/engine/classes/class.derivation.php b/workflow/engine/classes/class.derivation.php index f3c7ecabd..37189d3e3 100755 --- a/workflow/engine/classes/class.derivation.php +++ b/workflow/engine/classes/class.derivation.php @@ -613,7 +613,7 @@ class Derivation if ( $canDerivate ) { $aSP = isset($aSP) ? $aSP : null; - $this->doDerivation($currentDelegation, $nextDel, $appFields, $aSP); + $iNewDelIndex = $this->doDerivation($currentDelegation, $nextDel, $appFields, $aSP); } else { //when the task doesnt generate a new AppDelegation $iAppThreadIndex = $appFields['DEL_THREAD']; @@ -817,6 +817,7 @@ class Derivation } } } //end switch + return $iNewDelIndex; } /* verifyIsCaseChild