From 185c1aca13574758f7ab89fb332b967fbe153a0a Mon Sep 17 00:00:00 2001 From: Laurent Dinclaux Date: Wed, 11 Apr 2018 13:27:25 +1100 Subject: [PATCH] Passes the list of third parties and the list of objects ref to the complete_substitutions_array function as parameters. --- htdocs/core/actions_massactions.inc.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/htdocs/core/actions_massactions.inc.php b/htdocs/core/actions_massactions.inc.php index 5a713168c48..db7e2088b9e 100644 --- a/htdocs/core/actions_massactions.inc.php +++ b/htdocs/core/actions_massactions.inc.php @@ -356,6 +356,14 @@ if (! $error && $massaction == 'confirm_presend') $substitutionarray['__CHECK_READ__'] = ''; $parameters=array('mode'=>'formemail'); + + if ( ! empty( $listofobjectthirdparties ) ) { + $parameters['listofobjectthirdparties'] = $listofobjectthirdparties; + } + if ( ! empty( $listofobjectref ) ) { + $parameters['listofobjectref'] = $listofobjectref; + } + complete_substitutions_array($substitutionarray, $langs, $objecttmp, $parameters); $subject=make_substitutions($subject, $substitutionarray);