fix per includere le stampe nelle notifiche
This commit is contained in:
parent
6976950390
commit
d1df844cbb
|
@ -249,6 +249,12 @@ class EmailNotification extends Notification
|
|||
$mail->addReceiver($receiver['email'], $receiver['type']);
|
||||
}
|
||||
|
||||
$prints = database()->fetchArray('SELECT id_print FROM zz_email_print WHERE id_email = '.prepare($template['id']));
|
||||
|
||||
foreach ($prints as $print) {
|
||||
$this->addPrint($print['id_print'], post('id_record'));
|
||||
}
|
||||
|
||||
// Allegati
|
||||
$attachments = $this->getAttachments();
|
||||
foreach ($attachments as $attachment) {
|
||||
|
|
Loading…
Reference in New Issue