From 8236ad34fabe137c34210cace472b59c0d3f03fc Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 1 Dec 2022 18:34:20 +0100 Subject: [PATCH] Fix revert a new feature that must be in develop --- htdocs/core/lib/project.lib.php | 12 ------------ htdocs/core/modules/modTicket.class.php | 1 + 2 files changed, 1 insertion(+), 12 deletions(-) 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