Include Group in charge on Dashboard
Here is the code:
inc/ticket.class.php:
showFormHelpdesk()
Line 3916
echo "";
showCentralList()
Line 5578
echo "";
Line 5866 - 5867
echo "".__('Group in charge of the hardware')."";
echo "".__('Technician in charge of the ticket')."";
showVeryShort()
Line 6408 - 6443
// Categoria ITIL
echo "";
//$job->fields[];
$categ = new ITILCategory();
$categ->getFromDB($job->fields['itilcategories_id']);
echo "" . $categ->fields['name'] . "
";
// Grupo
if (isset($job->groups[CommonITILActor::ASSIGN])
&& count($job->groups[CommonITILActor::ASSIGN])) {
foreach ($job->groups[CommonITILActor::ASSIGN] as $d) {
echo Dropdown::getDropdownName("glpi_groups", $d["groups_id"]);
echo "
";
}
}
echo "";
echo "";
//user
if (isset($job->users[CommonITILActor::ASSIGN])
&& count($job->users[CommonITILActor::ASSIGN])) {
foreach ($job->users[CommonITILActor::ASSIGN] as $d) {
if ($d["users_id"] > 0) {
$userdata = getUserName($d["users_id"], 2);
$name = "".$userdata['name']."";
$name = sprintf(__('%1$s %2$s'), $name,
Html::showToolTip($userdata["comment"],
['link' => $userdata["link"],
'display' => false]));
echo $name;
} else {
echo $d['alternative_email']." ";
}
echo "
";
}
}
echo "";
Servicio de atención al cliente por UserEcho