Fix default value for recipient

This commit is contained in:
Laurent Destailleur 2022-08-25 02:52:54 +02:00
parent a7f9ec159b
commit ff2ae40691

View File

@ -198,7 +198,7 @@ if ($action == 'presend') {
}
$formmail->withto = $liste;
$formmail->withtofree = (GETPOSTISSET('sendto') ? (GETPOST('sendto', 'alphawithlgt') ? GETPOST('sendto', 'alphawithlgt') : '1') : '1');
$formmail->withtofree = (GETPOST('sendto', 'alphawithlgt') ? GETPOST('sendto', 'alphawithlgt') : '1');
$formmail->withtocc = $liste;
$formmail->withtoccc = getDolGlobalString('MAIN_EMAIL_USECCC');
$formmail->withtopic = $topicmail;