From 0d9c7c6dd6a18e5777679acfcebcf6589d3c3542 Mon Sep 17 00:00:00 2001 From: JKingsnorth Date: Wed, 2 Aug 2017 13:53:52 +0100 Subject: [PATCH] CRM-21009 Only count line items with a quantity towards max capacity --- CRM/Event/BAO/Participant.php | 1 + 1 file changed, 1 insertion(+) diff --git a/CRM/Event/BAO/Participant.php b/CRM/Event/BAO/Participant.php index e0d39c491c..513becc6dc 100644 --- a/CRM/Event/BAO/Participant.php +++ b/CRM/Event/BAO/Participant.php @@ -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}"; -- 2.25.1