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 0cf67944fa
commit 52f89ef2c0

View File

@ -52,7 +52,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';
}