diff --git a/workflow/engine/classes/class.derivation.php b/workflow/engine/classes/class.derivation.php index 690935875..34aa3a135 100755 --- a/workflow/engine/classes/class.derivation.php +++ b/workflow/engine/classes/class.derivation.php @@ -1208,7 +1208,7 @@ class Derivation break; } - if ($flagUpdateCounters) { + if (!is_null($taskNextDel) && !is_null($bpmnActivityNextDel) && $flagUpdateCounters) { $this->derivateUpdateCounters($currentDelegation, $nextDel, $taskNextDel, $appFields, (isset($iNewDelIndex))? $iNewDelIndex : 0, (isset($aSP))? $aSP : null, $removeList); }