diff --git a/ChangeLog b/ChangeLog index c72f312e918..da09d71d189 100644 --- a/ChangeLog +++ b/ChangeLog @@ -21,7 +21,8 @@ For users: - New: Add option MAIN_ADD_SALE_REP_SIGNATURE_IN_NOTE. - New: Add warning if supplier payment is higher that due amount. - New: Increase length of url into bookmark module. -- New: Add an admin page to make a mass init of barcode values for all products. +- New: Add an admin page to make a mass init of barcode values for all products. +- New: Automatic events for sending mails showing info about mail linked objects. TODO - New: Predefined product and free product use same form. diff --git a/htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php b/htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php index 6ab80b6ad88..0bb1b6c12b2 100644 --- a/htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php +++ b/htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php @@ -618,6 +618,15 @@ class InterfaceActionsAuto if ($ok) { $now=dol_now(); + + if(isset($_SESSION['listofnames'])) + { + $attachs=$_SESSION['listofnames']; + if($attachs && strpos($action,'SENTBYMAIL')) + { + $object->actionmsg.="\n".$langs->transnoentities("AttachedFiles").': '.$attachs; + } + } require_once DOL_DOCUMENT_ROOT.'/contact/class/contact.class.php'; require_once DOL_DOCUMENT_ROOT.'/societe/class/societe.class.php';