diff --git a/htdocs/core/lib/project.lib.php b/htdocs/core/lib/project.lib.php index 4b41ddf67e1..15162c8b273 100644 --- a/htdocs/core/lib/project.lib.php +++ b/htdocs/core/lib/project.lib.php @@ -207,18 +207,6 @@ function project_prepare_head(Project $project, $moreparam = '') $head[$h][2] = 'element'; $h++; } - if (!empty($conf->ticket->enabled)) { - $Tickettatic = new Ticket($db); - $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) { - $head[$h][1] .= ''.($nbTicket).''; - } - $head[$h][2] = 'ticket'; - $h++; - } - if ($conf->eventorganization->enabled && !empty($project->usage_organize_event)) { $langs->load('eventorganization'); diff --git a/htdocs/core/modules/modTicket.class.php b/htdocs/core/modules/modTicket.class.php index 8d258f63a96..01561b40b01 100644 --- a/htdocs/core/modules/modTicket.class.php +++ b/htdocs/core/modules/modTicket.class.php @@ -112,6 +112,7 @@ class modTicket extends DolibarrModules $this->tabs = array( 'thirdparty:+ticket:Tickets:@ticket:$user->rights->ticket->read:/ticket/list.php?socid=__ID__', + 'project:+ticket:Tickets:@ticket:$user->rights->ticket->read:/ticket/list.php?projectid=__ID__', ); // Dictionaries