This commit is contained in:
Laurent Destailleur 2026-05-22 08:49:21 +02:00
parent 99e364ccdd
commit e6f5ed96fc
2 changed files with 2 additions and 3 deletions

View file

@ -114,7 +114,7 @@ if (empty($massaction)) {
/** @var string[] $TMsg */
$TMsg = array();
$error =24;
// For backward compatibility
if (!empty($permtoread) && empty($permissiontoread)) {
$permissiontoread = $permtoread;

View file

@ -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) {