FIX : Using the default email template when sending bulk emails from a list (#38579)

This commit is contained in:
kkhelifa-opendsi 2026-06-09 03:13:20 +02:00 committed by GitHub
parent 1e9690b72c
commit c852196997
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -351,7 +351,7 @@ if ($massaction == 'presend') {
// Tableau des parameters complementaires du post
$formmail->param['action'] = $action;
$formmail->param['models'] = $modelmail; // the filter to know which kind of template emails to show. 'none' means no template suggested.
$formmail->param['models_id'] = GETPOSTINT('modelmailselected') ? GETPOSTINT('modelmailselected') : '-1';
$formmail->param['models_id'] = GETPOSTINT('modelmailselected') ? GETPOSTINT('modelmailselected') : '';
$formmail->param['id'] = implode(',', $arrayofselected);
// $formmail->param['returnurl']=$_SERVER["PHP_SELF"].'?id='.$object->id;
if (getDolGlobalString('MAILING_LIMIT_SENDBYWEB') && count($listofselectedrecipientobjid) > $conf->global->MAILING_LIMIT_SENDBYWEB) {