From e6f5ed96fcccd8f113bba2b1a19fb246a8a84367 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 22 May 2026 08:49:21 +0200 Subject: [PATCH] ci --- htdocs/core/actions_massactions.inc.php | 2 +- htdocs/ticket/list.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/htdocs/core/actions_massactions.inc.php b/htdocs/core/actions_massactions.inc.php index 2debc419ad3..cb97f6fe22d 100644 --- a/htdocs/core/actions_massactions.inc.php +++ b/htdocs/core/actions_massactions.inc.php @@ -114,7 +114,7 @@ if (empty($massaction)) { /** @var string[] $TMsg */ $TMsg = array(); - +$error =24; // For backward compatibility if (!empty($permtoread) && empty($permissiontoread)) { $permissiontoread = $permtoread; diff --git a/htdocs/ticket/list.php b/htdocs/ticket/list.php index b2de366003a..01850822967 100644 --- a/htdocs/ticket/list.php +++ b/htdocs/ticket/list.php @@ -251,9 +251,8 @@ if (empty($reshook)) { $objectlabel = 'Ticket'; $uploaddir = $conf->ticket->dir_output; - global $error; - /** @phan-var-force int $error */ include DOL_DOCUMENT_ROOT.'/core/actions_massactions.inc.php'; + /** @phan-var-force int $error */ // Close records if (!$error && $massaction == 'close' && $permissiontoadd) {