From 483a0d46d739f20165e75e22d8dc1d63a348cbb0 Mon Sep 17 00:00:00 2001 From: Paula Quispe Date: Thu, 20 Jul 2017 16:57:23 -0400 Subject: [PATCH] HOR-3527 --- workflow/engine/classes/class.derivation.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/workflow/engine/classes/class.derivation.php b/workflow/engine/classes/class.derivation.php index 425567b9e..b4c998200 100644 --- a/workflow/engine/classes/class.derivation.php +++ b/workflow/engine/classes/class.derivation.php @@ -1341,9 +1341,11 @@ class Derivation if (isset($iNewDelIndex)) { $appFields["DEL_INDEX"] = $iNewDelIndex; $excludeTasUid = array(TASK_FINISH_PROCESS, TASK_FINISH_TASK); - //If the last TAS_UID value is not valid we will check for the TAS_UID value + //If the last TAS_UID value is not valid we will check for the valid TAS_UID value if (in_array($nextDel["TAS_UID"], $excludeTasUid) && is_array($arrayDerivationResult) && isset(current($arrayDerivationResult)["TAS_UID"])) { $appFields["TAS_UID"] = current($arrayDerivationResult)["TAS_UID"]; + } else { + $appFields["TAS_UID"] = $nextDel["TAS_UID"]; } $flagUpdateCase = true; }