From 55b448190187d4072d8bd4ffdedec82c69fc7b44 Mon Sep 17 00:00:00 2001 From: davidcallizaya Date: Tue, 27 Jun 2017 12:04:48 -0400 Subject: [PATCH] HOR-3369 Fix update from Multiple Step to Single Step. --- .../engine/src/ProcessMaker/BusinessModel/WebEntryEvent.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/workflow/engine/src/ProcessMaker/BusinessModel/WebEntryEvent.php b/workflow/engine/src/ProcessMaker/BusinessModel/WebEntryEvent.php index 8589a7d8b..9d6693a6e 100644 --- a/workflow/engine/src/ProcessMaker/BusinessModel/WebEntryEvent.php +++ b/workflow/engine/src/ProcessMaker/BusinessModel/WebEntryEvent.php @@ -692,9 +692,8 @@ class WebEntryEvent $task = new \Tasks(); //Task - Step for WE_TYPE=SINGLE - if (isset($arrayData["DYN_UID"]) && - ((isset($arrayData["WE_TYPE"]) && $arrayData["WE_TYPE"] === 'SINGLE') || ($arrayWebEntryEventData["WE_TYPE"] === 'SINGLE'))) { - + $weType = !empty($arrayData["WE_TYPE"]) ? $arrayData["WE_TYPE"] : $arrayWebEntryEventData["WE_TYPE"]; + if (isset($arrayData["DYN_UID"]) && $arrayData["DYN_UID"] !== $arrayWebEntryEventData["DYN_UID"] && $weType==='SINGLE') { //Delete $step = new \Step();