This commit is contained in:
Frédéric France 2025-01-23 22:26:02 +01:00
parent 622a655a3c
commit 9ea11cabf7
No known key found for this signature in database
GPG key ID: CE25B0B7B53B9177
2 changed files with 3 additions and 3 deletions

View file

@ -4,6 +4,7 @@
* 2016 Christophe Battarel <christophe@altairis.fr>
* Copyright (C) 2023 Benjamin Falière <benjamin.faliere@altairis.fr>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
* Copyright (C) 2025 Frédéric France <frederic.france@free.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -178,6 +179,7 @@ class InterfaceTicketEmail extends DolibarrTriggers
if (!getDolGlobalString('TICKET_DISABLE_ALL_MAILS')) {
// Send email to assigned user
$sendto = $userstat->email;
$old_MAIN_MAIL_AUTOCOPY_TO = '';
if (!getDolGlobalString('TICKET_DISABLE_MAIL_AUTOCOPY_TO')) {
$old_MAIN_MAIL_AUTOCOPY_TO = $conf->global->MAIN_MAIL_AUTOCOPY_TO;
$conf->global->MAIN_MAIL_AUTOCOPY_TO = '';
@ -192,8 +194,7 @@ class InterfaceTicketEmail extends DolibarrTriggers
}
}
} else {
$this->error = $userstat->error;
$this->errors = $userstat->errors;
$this->setErrorsFromObject($userstat);
}
}

View file

@ -169,7 +169,6 @@ $ErrorCode = $ErrorShortMsg = $ErrorLongMsg = $ErrorSeverityCode = '';
$object = new stdClass(); // For triggers
/** @var CommonObject $object */
$error = 0;