Merged in bugfix/PMCORE-633 (pull request #8373)

PMCORE-633

Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
Paula Quispe
2022-02-02 13:49:41 +00:00
committed by Julio Cesar Laura Avendaño
2 changed files with 3 additions and 1 deletions

View File

@@ -2923,7 +2923,7 @@ class Processes
foreach ($aStepSupervisor as $key => $row) {
$oStepSupervisor = new StepSupervisor();
if ($oStepSupervisor->Exists($row['STEP_UID'])) {
$oStepSupervisor->update($row['STEP_UID']);
$oStepSupervisor->update($row);
} else {
$oStepSupervisor->create($row);
}

View File

@@ -1275,6 +1275,8 @@ class ProcessSupervisor
$finPos = $prStepPos-1;
}
$range = range($iniPos, $finPos);
$stepChangePos = [];
$stepChangeIds = [];
foreach ($aSteps as $dataStep) {
if ($dataStep['obj_type'] == 'DYNAFORM') {
if ((in_array($dataStep['pud_position'], $range)) && ($dataStep['pud_uid'] != $step_uid)) {