mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
FIX#20415
This commit is contained in:
@@ -207,6 +207,18 @@ 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] .= '<span class="badge marginleftonlyshort">'.($nbTicket).'</span>';
|
||||
}
|
||||
$head[$h][2] = 'ticket';
|
||||
$h++;
|
||||
}
|
||||
|
||||
|
||||
if ($conf->eventorganization->enabled && !empty($project->usage_organize_event)) {
|
||||
$langs->load('eventorganization');
|
||||
|
||||
@@ -112,7 +112,6 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user