Merge pull request #26147 from BB2A-Anthony/FIX---result-send-file-mail

FIX - compare the result of the send mail file function
This commit is contained in:
Laurent Destailleur 2023-10-09 11:27:12 +02:00 committed by GitHub
commit fdec5f89b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -370,7 +370,7 @@ if (($action == 'send' || $action == 'relance') && !GETPOST('addfile') && !GETPO
$action = 'presend';
} else {
$result = $mailfile->sendfile();
if ($result) {
if ($result >= 0) {
// Initialisation of datas of object to call trigger
if (is_object($object)) {
if (empty($actiontypecode)) {