using validate() function instead of settStatut(1) to validate an attendee

This commit is contained in:
Dorian Vabre 2021-05-10 15:58:54 +02:00
parent 7d0c3dcf6d
commit f6956d6a62

View File

@ -1006,7 +1006,7 @@ if ($ispaymentok) {
if ($resultattendee < 0) {
setEventMessages(null, $attendeetovalidate->errors, "errors");
} else {
$attendeetovalidate->setStatut(1);
$attendeetovalidate->validate($user);
// Sending mail
$thirdparty = new Societe($db);