From d2bbba5a21a1e37e83d64e288b694e4c016640e8 Mon Sep 17 00:00:00 2001 From: Vincent Penel Date: Thu, 12 Mar 2026 01:20:03 +0100 Subject: [PATCH] Fixing the 'formConfirm' hook on tickets (#37473) Co-authored-by: Laurent Destailleur --- htdocs/ticket/card.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/ticket/card.php b/htdocs/ticket/card.php index 7f54822399d..f7082cfaa52 100644 --- a/htdocs/ticket/card.php +++ b/htdocs/ticket/card.php @@ -775,7 +775,7 @@ if ($action == 'create' || $action == 'presend') { $formticket->showForm(0, 'edit', 0, null, $action, $object); print dol_get_fiche_end(); -} elseif (empty($action) || in_array($action, ['builddoc', 'view', 'addlink', 'addlinkbyref', 'dellink', 'presend', 'presend_addmessage', 'close', 'abandon', 'delete', 'editcustomer', 'progression', 'categories', 'reopen', 'edit_contrat', 'editsubject', 'edit_extras', 'update_extras', 'edit_extrafields', 'set_extrafields', 'classify', 'sel_contract', 'edit_message_init', 'set_status'])) { +} elseif ($object->id) { if (!empty($res) && $res > 0) { // or for unauthorized internals users if (!$user->socid && (getDolGlobalString('TICKET_LIMIT_VIEW_ASSIGNED_ONLY') && $object->fk_user_assign != $user->id) && !$user->hasRight('ticket', 'manage')) {