From d3442bd4d89698a425e00bed6c2a9454b005877a Mon Sep 17 00:00:00 2001 From: Nicolas Domenech Date: Fri, 7 Oct 2022 14:40:41 +0200 Subject: [PATCH] =?UTF-8?q?[Hook]=20fix:=20id=20is=20not=20always=20define?= =?UTF-8?q?d=20in=20tickets=E2=80=99=20calling?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix by altairis-noe on doliproject --- class/actions_dolisirh.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/class/actions_dolisirh.class.php b/class/actions_dolisirh.class.php index 6417b86..e3f5420 100644 --- a/class/actions_dolisirh.class.php +++ b/class/actions_dolisirh.class.php @@ -508,7 +508,7 @@ public function printCommonFooter(array $parameters) $task = new Task($this->db); $ticket = new Ticket($this->db); - $ticket->fetch(GETPOST('id')); + $ticket->fetch(!empty(GETPOST('id')) ? (GETPOST('id')) : '', !empty(GETPOST('ref')) ? GETPOST('ref') : '', !empty(GETPOST('track_id')) ? GETPOST('track_id') : ''); $ticket->fetch_optionals(); $task_id = $ticket->array_options['options_fk_task'];