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:
commit
d18d570ecb
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user