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