PMCORE-2698
This commit is contained in:
@@ -1124,14 +1124,17 @@ class AbstractCases implements CasesInterface
|
||||
if($key === 'user_id') {
|
||||
$threadTasks[$i][$key] = $row;
|
||||
// Get the user tooltip information
|
||||
$threadTasks[$i] = User::getInformation($row);
|
||||
$threadTasks[$i]['user_tooltip'] = User::getInformation($row);
|
||||
}
|
||||
} else {
|
||||
// Thread users
|
||||
if ($key === 'user_id') {
|
||||
$threadUsers[$i][$key] = $row;
|
||||
// Get the user tooltip information
|
||||
$threadTasks[$i] = User::getInformation($row);
|
||||
// Get user information
|
||||
$userInfo = User::getInformation($row);
|
||||
$threadUsers[$i]['usr_username'] = !empty($userInfo) ? $userInfo['usr_username'] : '';
|
||||
$threadUsers[$i]['usr_lastname'] = !empty($userInfo) ? $userInfo['usr_lastname'] : '';
|
||||
$threadUsers[$i]['usr_firstname'] = !empty($userInfo) ? $userInfo['usr_firstname'] : '';
|
||||
}
|
||||
// Thread titles
|
||||
if ($key === 'del_id') {
|
||||
|
||||
@@ -184,7 +184,7 @@ class Participated extends AbstractCases
|
||||
$result[$i]['tas_color'] = (!empty($thread['DEL_TASK_DUE_DATE'])) ? $this->getTaskColor($thread['DEL_TASK_DUE_DATE']) : '';
|
||||
$result[$i]['tas_color_label'] = (!empty($result[$i]['tas_color'])) ? self::TASK_COLORS[$result[$i]['tas_color']] : '';
|
||||
// Get the user tooltip information
|
||||
$result[$i] = User::getInformation($thread['USR_ID']);
|
||||
$result[$i]['user_tooltip'] = User::getInformation($thread['USR_ID']);
|
||||
$i++;
|
||||
}
|
||||
$item['PENDING'] = $result;
|
||||
@@ -196,7 +196,7 @@ class Participated extends AbstractCases
|
||||
$result[$i]['tas_color'] = (!empty($item['DEL_TASK_DUE_DATE'])) ? $this->getTaskColor($item['DEL_TASK_DUE_DATE']) : '';
|
||||
$result[$i]['tas_color_label'] = (!empty($result[$i]['tas_color'])) ? self::TASK_COLORS[$result[$i]['tas_color']] : '';
|
||||
// Get the user tooltip information
|
||||
$result[$i] = User::getInformation($item['USR_ID']);
|
||||
$result[$i]['user_tooltip'] = User::getInformation($item['USR_ID']);
|
||||
$item['PENDING'] = $result;
|
||||
}
|
||||
break;
|
||||
@@ -217,7 +217,7 @@ class Participated extends AbstractCases
|
||||
$result[$i]['tas_color'] = (!empty($item['DEL_TASK_DUE_DATE'])) ? $this->getTaskColor($item['DEL_TASK_DUE_DATE']) : '';
|
||||
$result[$i]['tas_color_label'] = (!empty($result[$i]['tas_color'])) ? self::TASK_COLORS[$result[$i]['tas_color']] : '';
|
||||
// Get the user tooltip information
|
||||
$result[$i] = User::getInformation($item['USR_ID']);
|
||||
$result[$i]['user_tooltip'] = User::getInformation($item['USR_ID']);
|
||||
$item['PENDING'] = $result;
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -220,6 +220,7 @@ class User extends Model
|
||||
'USR_FIRSTNAME',
|
||||
'USR_LASTNAME',
|
||||
'USR_EMAIL',
|
||||
'USR_POSITION'
|
||||
])
|
||||
->userId($usrId)
|
||||
->limit(1);
|
||||
@@ -230,6 +231,7 @@ class User extends Model
|
||||
$info['usr_firstname'] = $item->USR_FIRSTNAME;
|
||||
$info['usr_lastname'] = $item->USR_LASTNAME;
|
||||
$info['usr_email'] = $item->USR_EMAIL;
|
||||
$info['usr_position'] = $item->USR_POSITION;
|
||||
});
|
||||
|
||||
return $info;
|
||||
|
||||
Reference in New Issue
Block a user