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'];

View File

@@ -14675,12 +14675,6 @@ msgstr "Properties saved successfully"
msgid "Error Update File"
msgstr "Error Update File"
# TRANSLATION
# LABEL/ID_MAFE_7215ee9c7d9dc229d2921a40e899ec5f
#: LABEL/ID_MAFE_7215ee9c7d9dc229d2921a40e899ec5f
msgid "[LABEL/ID_MAFE_7215ee9c7d9dc229d2921a40e899ec5f] "
msgstr ""
# TRANSLATION
# LABEL/ID_MAFE_725255d7ccc0cf426c1da6abe0afe7e4
#: LABEL/ID_MAFE_725255d7ccc0cf426c1da6abe0afe7e4

View File

@@ -57,10 +57,10 @@ class ProcessPermissions
$aFields = $oTask->load($aRow['TAS_UID']);
$sTaskTarget = $aFields['TAS_TITLE'];
} catch (\Exception $oError) {
$sTaskTarget = 'All Tasks';
$sTaskTarget = G::LoadTranslation('ID_SELECT_ONE_OPTION');
}
} else {
$sTaskTarget = G::LoadTranslation('ID_ANY_TASK');
$sTaskTarget = G::LoadTranslation('ID_SELECT_ONE_OPTION');
}
//Obtain user or group
if ($aRow['OP_USER_RELATION'] == 1) {
@@ -87,7 +87,7 @@ class ProcessPermissions
$aFields = $oTask->load($aRow['OP_TASK_SOURCE']);
$sTaskSource = $aFields['TAS_TITLE'];
} catch (\Exception $oError) {
$sTaskSource = 'All Tasks';
$sTaskSource = G::LoadTranslation('ID_ANY_TASK');
}
} else {
$sTaskSource = G::LoadTranslation('ID_ANY_TASK');