PMCORE-1880

This commit is contained in:
Paula Quispe
2021-04-08 18:56:42 -04:00
parent 7ea03cb9ba
commit ae5856f1cc
3 changed files with 10 additions and 10 deletions

View File

@@ -5872,7 +5872,13 @@ class Cases
foreach ($permissions as $row) {
$userUid = $row['USR_UID'];
$opUserRelation = $row['OP_USER_RELATION'];
$opTaskSource = $row['OP_TASK_SOURCE'];
$originTask = $row['OP_TASK_SOURCE']; // We can see the steps related to this task
$targetTask = $row['TAS_UID']; // We can see the steps related to this task if is the current task
if (!empty($targetTask)) {
$opTaskSource = $targetTask;
} else {
$opTaskSource = $originTask;
}
$opParticipated = (int) $row['OP_PARTICIPATE'];
$opType = $row['OP_OBJ_TYPE'];
$opObjUid = $row['OP_OBJ_UID'];