diff --git a/htdocs/ticket/index.php b/htdocs/ticket/index.php index 7d39d10d9e2..11593041abb 100644 --- a/htdocs/ticket/index.php +++ b/htdocs/ticket/index.php @@ -3,6 +3,7 @@ * Copyright (C) 2019 Nicolas ZABOURI * Copyright (C) 2021-2024 Frédéric France * Copyright (C) 2024-2025 MDW + * Copyright (C) 2025 Charlene Benke * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -263,14 +264,14 @@ $stringtoshow .= ''; if ($user->hasRight('ticket', 'read')) { print '
'; print ''; - print ''; + print ''; - print ''; - + print ''; print '
'.$langs->trans("Statistics").' '.$endyear.' '.img_picto('', 'filter.png', 'id="idsubimgDOLUSERCOOKIE_ticket_by_status" class="linkobject"').'
'.$langs->trans("Statistics").' '.$endyear.' '.img_picto('', 'filter.png', 'id="idsubimgDOLUSERCOOKIE_ticket_by_status" class="linkobject"').'
'; + print '
'; print $stringtoshow; // don't display graph if no series + $totalnb = 0; if (!empty($dataseries) && count($dataseries) > 1) { - $totalnb = 0; foreach ($dataseries as $key => $value) { $totalnb += $value['data']; } @@ -310,7 +311,7 @@ if ($user->hasRight('ticket', 'read')) { } } print '
'.$langs->trans("Total").''.$totalnb.'
'; print '
'; }