From 0ac25e179190b59a9d003e5c5a4283cb1f86380c Mon Sep 17 00:00:00 2001 From: Nicolas Domenech Date: Tue, 18 Jun 2024 10:01:23 +0200 Subject: [PATCH] #3977 [PublicTicket] fix: change hook name because already used and remove unused code --- class/actions_digiriskdolibarr.class.php | 26 ---------------------- core/modules/modDigiriskDolibarr.class.php | 2 +- public/ticket/create_ticket.php | 2 +- 3 files changed, 2 insertions(+), 28 deletions(-) diff --git a/class/actions_digiriskdolibarr.class.php b/class/actions_digiriskdolibarr.class.php index 2df9fa017..d8568549e 100644 --- a/class/actions_digiriskdolibarr.class.php +++ b/class/actions_digiriskdolibarr.class.php @@ -508,32 +508,6 @@ public function printCommonFooter($parameters) } } } - } else if (strpos($parameters['context'], 'ticketpubliccard') !== false) { - if (!$conf->multicompany->enabled) { - $entity = $conf->entity; - } else { - $entity = GETPOST('entity'); - } - if ($entity > 0) { - ?> - - '; } diff --git a/core/modules/modDigiriskDolibarr.class.php b/core/modules/modDigiriskDolibarr.class.php index 03095ccbf..152d308f5 100644 --- a/core/modules/modDigiriskDolibarr.class.php +++ b/core/modules/modDigiriskDolibarr.class.php @@ -416,7 +416,7 @@ public function __construct($db) 'projecttaskcard', 'projecttaskscard', 'tasklist', - 'publicnewticketcard', + 'publicticket', 'ticketlist', 'thirdpartyticket', 'projectticket', diff --git a/public/ticket/create_ticket.php b/public/ticket/create_ticket.php index 13883f7cb..5daac2b5b 100644 --- a/public/ticket/create_ticket.php +++ b/public/ticket/create_ticket.php @@ -73,7 +73,7 @@ } // Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context -$hookmanager->initHooks(['ticketpubliccard', 'globalcard']); +$hookmanager->initHooks(['publicticket', 'saturnepublicinterface']); $object = new Ticket($db); $formfile = new FormFile($db);