X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FEvent%2FBAO%2FParticipant.php;h=0428b1a18e79b60ece5aca2e3f9d629258fd528d;hb=685dc43355ed3125952a99f39aeb8f49cde5d7d3;hp=c63041d35f858ffa0e659eb1a78b4737d18b9cd4;hpb=ae3a9643e62f1fd7ffa7874116dfb1548bbbf486;p=civicrm-core.git diff --git a/CRM/Event/BAO/Participant.php b/CRM/Event/BAO/Participant.php index c63041d35f..0428b1a18e 100644 --- a/CRM/Event/BAO/Participant.php +++ b/CRM/Event/BAO/Participant.php @@ -2035,11 +2035,7 @@ WHERE (li.entity_table = 'civicrm_participant' AND li.entity_id = {$participantI // the recordAdjustedAmt code would execute over here $ids = CRM_Event_BAO_Participant::getParticipantIds($contributionId); if (count($ids) > 1) { - $total = 0; - foreach ($ids as $val) { - $total += CRM_Price_BAO_LineItem::getLineTotal($val, 'civicrm_participant'); - } - $updatedAmount = $total; + $updatedAmount = CRM_Price_BAO_LineItem::getLineTotal($contributionId); } else { $updatedAmount = $params['amount'];