Fix default value for recipient

This commit is contained in:
Laurent Destailleur 2022-08-25 02:52:54 +02:00
parent e81800b7d9
commit 601e2b00d6

View File

@ -195,7 +195,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;