From 2707445dbec9c83faa7628f4e6c96e738ddbf3e9 Mon Sep 17 00:00:00 2001 From: Zephyriony <142790847+zephyriony@users.noreply.github.com> Date: Tue, 21 May 2024 16:00:59 +0200 Subject: [PATCH] Update contact.php fetch object (#29727) * Update contact.php fetch object * Update contact.php --------- Co-authored-by: Laurent Destailleur --- htdocs/ticket/contact.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htdocs/ticket/contact.php b/htdocs/ticket/contact.php index 330dd4baa69..cad04631bc7 100644 --- a/htdocs/ticket/contact.php +++ b/htdocs/ticket/contact.php @@ -62,6 +62,9 @@ $url_page_current = DOL_URL_ROOT.'/ticket/contact.php'; $hookmanager->initHooks(array('contactticketcard', 'globalcard')); $object = new Ticket($db); +if ($id > 0 || $ref || $track_id) { + $result = $object->fetch($id, $ref, $track_id); +} // Security check $id = GETPOSTINT("id");