FIX Count only attendee draft of validated.

This commit is contained in:
Laurent Destailleur 2023-05-04 19:17:57 +02:00
parent a1d6e55189
commit 74ef3b076d

View File

@ -106,6 +106,7 @@ if ($type == 'global') {
} else {
$sql = "SELECT COUNT(*) as nb FROM ".MAIN_DB_PREFIX."eventorganization_conferenceorboothattendee";
$sql .= " WHERE fk_project = ".((int) $project->id);
$sql .= " AND status IN (0, 1)";
$resql = $db->query($sql);
if ($resql) {