CRM-14223 - CiviEvent - don't count test registrations when returning participant...
authorJon goldberg - Linux laptop <jon@palantetech.coop>
Sat, 15 Feb 2014 16:02:02 +0000 (11:02 -0500)
committerJon goldberg - Linux laptop <jon@palantetech.coop>
Thu, 20 Feb 2014 23:04:22 +0000 (18:04 -0500)
----------------------------------------
* CRM-14223:
  http://issues.civicrm.org/jira/browse/CRM-14223

CRM/Event/BAO/Event.php

index 54da21dd37726c0b50b98ca93e7bc6fc204172f6..53a5a379f8c5e15d5e2d189e1ec61d083e7fd467 100644 (file)
@@ -1990,6 +1990,7 @@ LEFT  JOIN  civicrm_line_item lineItem ON ( lineItem.entity_id    = participant.
                                        AND  lineItem.entity_table = 'civicrm_participant' )
 LEFT  JOIN  civicrm_price_field_value value ON ( value.id = lineItem.price_field_value_id AND value.count )
      WHERE  ( participant.event_id = %1 )
+            AND participant.is_test = 0
             {$extraWhereClause}
   GROUP BY  participant.event_id";