From: Dan Cruson Date: Fri, 1 Aug 2014 17:50:43 +0000 (-0400) Subject: Update Contribution.php X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=01e72fbcbeab21072d1b23f0ebe0804919e0aa94;p=civicrm-core.git Update Contribution.php Fix regression that was causing Event Resets with Offline Contributions to be garbled. Detailed in CRM-15069 --- diff --git a/CRM/Contribute/Form/Contribution.php b/CRM/Contribute/Form/Contribution.php index 4063922d82..c47304b8b7 100644 --- a/CRM/Contribute/Form/Contribution.php +++ b/CRM/Contribute/Form/Contribution.php @@ -1066,7 +1066,7 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP ); CRM_Event_BAO_Participant::add($participantParams); if (empty($this->_lineItems)) { - $this->_lineItems = CRM_Price_BAO_LineItem::getLineItems($entityID, 'participant', 1); + $this->_lineItems[] = CRM_Price_BAO_LineItem::getLineItems($entityID, 'participant', 1); } } else {