Merge pull request #21141 from al-misbah-informatique/develop

NEW: Send Notification Without File when E-mail Template doesn't attach file
This commit is contained in:
Laurent Destailleur 2022-06-12 19:43:57 +02:00 committed by GitHub
commit d18d570ecb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -615,7 +615,7 @@ class Notify
$ref = dol_sanitizeFileName($newref);
$pdf_path = $dir_output."/".$ref.".pdf";
if (!dol_is_file($pdf_path)) {
if (!dol_is_file($pdf_path)||(is_object($arraydefaultmessage) && $arraydefaultmessage->id > 0 && !$arraydefaultmessage->joinfiles)) {
// We can't add PDF as it is not generated yet.
$filepdf = '';
} else {