diff --git a/class/actions_digiriskdolibarr.class.php b/class/actions_digiriskdolibarr.class.php index 744748f93..2df9fa017 100644 --- a/class/actions_digiriskdolibarr.class.php +++ b/class/actions_digiriskdolibarr.class.php @@ -508,7 +508,7 @@ public function printCommonFooter($parameters) } } } - } else if (strpos($parameters['context'], 'publicnewticketcard') !== false) { + } else if (strpos($parameters['context'], 'ticketpubliccard') !== false) { if (!$conf->multicompany->enabled) { $entity = $conf->entity; } else { diff --git a/public/ticket/create_ticket.php b/public/ticket/create_ticket.php index c611390f3..13883f7cb 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(array('publicnewticketcard', 'globalcard')); +$hookmanager->initHooks(['ticketpubliccard', 'globalcard']); $object = new Ticket($db); $formfile = new FormFile($db);