From f701a52d2d77e8f032d5c4bae2d2c0cbc5627136 Mon Sep 17 00:00:00 2001 From: florian HENRY Date: Tue, 18 Jul 2017 19:33:25 +0200 Subject: [PATCH] fix missing line into PR 6012 --- htdocs/core/actions_sendmails.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htdocs/core/actions_sendmails.inc.php b/htdocs/core/actions_sendmails.inc.php index a796a94c68c..1998808bf11 100644 --- a/htdocs/core/actions_sendmails.inc.php +++ b/htdocs/core/actions_sendmails.inc.php @@ -391,6 +391,9 @@ if (($action == 'send' || $action == 'relance') && ! $_POST['addfile'] && ! $_PO $object->trackid = $trackid; $object->fk_element = $object->id; $object->elementtype = $object->element; + if (is_array($attachedfiles) && count($attachedfiles)>0) { + $object->attachedfiles = $attachedfiles; + } // Call of triggers if (! empty($trigger_name))