Merge pull request #11080 from waddyvic/advanced-search-recur-status
[civicrm-core.git] / CRM / Event / BAO / Participant.php
index c8452b9e2df6f3f6adeb5b0464f3de2ed10d9526..29ee23386594138f694202a49d2e9509adad6ea7 100644 (file)
@@ -547,6 +547,7 @@ INNER JOIN  civicrm_participant participant ON ( line.entity_table  = 'civicrm_p
 INNER JOIN  civicrm_price_field_value value ON ( value.id = line.price_field_value_id )
 INNER JOIN  civicrm_price_field field       ON ( value.price_field_id = field.id )
      WHERE  participant.event_id = %1
+       AND  line.qty > 0
             {$statusIdClause}
             {$isTestClause}
             {$skipParticipantClause}";