Merged in bugfix/PMCORE-4003 (pull request #8642)

PMCORE-4003 ID_EMAIL_EVENT does not have translation

Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
Roly Gutierrez
2023-01-06 12:45:50 +00:00
committed by Julio Cesar Laura Avendaño
3 changed files with 17 additions and 3 deletions

View File

@@ -164,9 +164,9 @@ class Inbox extends AbstractCases
$dummyInfo = [];
if (!empty($previousThread)) {
// When the task has an user
$userInfo = ($previousThread['USR_ID'] !== 0) ? User::getInformation($previousThread['USR_ID']) : [];
$userInfo = (intval($previousThread['USR_ID']) !== 0) ? User::getInformation($previousThread['USR_ID']) : [];
// When the task does not have users refers to dummy task
$taskInfo = ($previousThread['USR_ID'] === 0) ? Task::title($previousThread['TAS_ID']) : [];
$taskInfo = (intval($previousThread['USR_ID']) === 0) ? Task::title($previousThread['TAS_ID']) : [];
if (!empty($taskInfo)) {
$dummyInfo = [
'task_id' => $previousThread['TAS_ID'],