From d1df844cbb9f24ca27a1ddb7578915b6b61d6440 Mon Sep 17 00:00:00 2001 From: Beppe Date: Mon, 3 Jun 2019 12:41:23 +0200 Subject: [PATCH] fix per includere le stampe nelle notifiche --- src/Notifications/EmailNotification.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Notifications/EmailNotification.php b/src/Notifications/EmailNotification.php index de4ab45c9..612890078 100644 --- a/src/Notifications/EmailNotification.php +++ b/src/Notifications/EmailNotification.php @@ -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) {