FIX Better protection to no send email when we change limit

This commit is contained in:
Laurent Destailleur 2017-09-16 13:26:43 +02:00
parent ff7a17eb96
commit 97e8974fdf

View File

@ -51,7 +51,7 @@ if (! $error && count($toselect) > $maxformassaction)
$error++;
}
if (! $error && $massaction == 'confirm_presend' && GETPOST('modelselected')) // If we change the template, we must not send email, but keep on send email form
if (! $error && $massaction == 'confirm_presend' && ! GETPOST('sendmail')) // If we do not choose button send (for example when we change template or limit), we must not send email, but keep on send email form
{
$massaction='presend';
}