From f0bf7e662dc2deeca2a6220a94d46d61222c98bd Mon Sep 17 00:00:00 2001 From: UT from dolibit <45215329+dolibit-ut@users.noreply.github.com> Date: Fri, 23 Sep 2022 11:21:56 +0200 Subject: [PATCH] Update index.php --- htdocs/ticket/index.php | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/htdocs/ticket/index.php b/htdocs/ticket/index.php index ec609db64c2..0128954989d 100644 --- a/htdocs/ticket/index.php +++ b/htdocs/ticket/index.php @@ -18,17 +18,18 @@ */ /** - * \file htdocs/ticket/agenda.php - * \ingroup ticket + * \file htdocs/ticket/index.php + * \ingroup ticket */ // Load Dolibarr environment require '../main.inc.php'; +require_once DOL_DOCUMENT_ROOT.'/core/class/dolgraph.class.php'; +require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php'; +require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php'; require_once DOL_DOCUMENT_ROOT.'/ticket/class/actions_ticket.class.php'; require_once DOL_DOCUMENT_ROOT.'/ticket/class/ticketstats.class.php'; -require_once DOL_DOCUMENT_ROOT.'/core/class/dolgraph.class.php'; -require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php'; -require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php'; + $hookmanager = new HookManager($db); @@ -59,6 +60,7 @@ $year = GETPOST('year', 'int') > 0 ? GETPOST('year', 'int') : $nowyear; $startyear = $year - (empty($conf->global->MAIN_STATS_GRAPHS_SHOW_N_YEARS) ? 2 : max(1, min(10, $conf->global->MAIN_STATS_GRAPHS_SHOW_N_YEARS))); $endyear = $year; +// Initialize objects $object = new Ticket($db); // Security check @@ -68,6 +70,7 @@ if (empty($user->rights->ticket->read) && empty($user->rights->knowledgemanageme } + /* * Actions */ @@ -75,9 +78,11 @@ if (empty($user->rights->ticket->read) && empty($user->rights->knowledgemanageme // None + /* * View */ + $resultboxes = FormOther::getBoxesArea($user, "11"); // Load $resultboxes (selectboxlist + boxactivated + boxlista + boxlistb) $form = new Form($db); @@ -405,7 +410,7 @@ if (!empty($user->rights->ticket->read)) { //print $objp->category_label; print ""; - // Severity + // Severity = Priority print '