Merge pull request #7178 from atm-florian/fix_save_attachement_in_event_sendbymail

fix missing line into PR #6012
This commit is contained in:
Laurent Destailleur 2017-07-21 15:00:56 +02:00 committed by GitHub
commit dc7e00ccc6

View File

@ -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))