Fix details of X who are not member of the group in event admin page
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Tue, 2 Oct 2007 19:42:12 +0000 (21:42 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Tue, 2 Oct 2007 19:42:12 +0000 (21:42 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
modules/xnetevents/xnetevents.inc.php

index 007dec9..774eeac 100644 (file)
@@ -130,7 +130,7 @@ function get_event_participants($evt, $item_id, $tri, $limit = '') {
                    IF(m.origine != 'X' OR u.perms = 'pending',m.email,a.alias) AS email,
                    IF(m.origine != 'X',m.sexe,FIND_IN_SET('femme', u.flags)) AS femme,
                    m.perms='admin' AS admin,
-                   (m.origine = 'X') AS x,
+                   (m.origine = 'X' OR m.origine IS NULL) AS x,
                    ep.uid, SUM(ep.paid) AS paid, SUM(nb) AS nb,
                    FIND_IN_SET('notify_payment', ep.flags) AS notify_payment
              FROM  groupex.evenements_participants AS ep