FIX#20415

This commit is contained in:
Mathieu 2022-11-26 00:33:23 +01:00
parent c49e7e882f
commit 99a34e23c8

View File

@ -209,7 +209,7 @@ function project_prepare_head(Project $project, $moreparam = '')
}
if (!empty($conf->ticket->enabled)) {
$Tickettatic = new Ticket($db);
$nbTicket = count($Tickettatic->getAllItemsLinkedByObjectID($project->id,'*','fk_project','ticket'));
$nbTicket = count($Tickettatic->getAllItemsLinkedByObjectID($project->id, '*', 'fk_project', 'ticket'));
$head[$h][0] = DOL_URL_ROOT.'/ticket/list.php?projectid='.((int) $project->id);
$head[$h][1] = $langs->trans("Ticket");
if ($nbTicket > 0) {