add comment
authorjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Wed, 10 Feb 2016 10:13:11 +0000 (15:43 +0530)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Wed, 10 Feb 2016 10:13:11 +0000 (15:43 +0530)
CRM/Report/Form/Event/ParticipantListing.php

index c296bd3e8ae464a858adf127556843c96c2bf904..5fcf66c1e490fc17f9dfb886d8ba6bddae784541 100644 (file)
@@ -461,6 +461,8 @@ ORDER BY  cv.label
             }
             if ($fieldName == 'total_paid' || $fieldName == 'balance') {
               $this->_balance = TRUE;
+              // modify the select if filtered by fee_level as the from clause
+              // already selects the total_amount from civicrm_contribution table
               if (!empty($this->_params['price_field_value_id_value'])) {
                 $field['dbAlias'] = str_replace('SUM(ft.total_amount)', 'ft.total_amount', $field['dbAlias']);
               }