Update Contribution.php
authorDan Cruson <cruson.web@gmail.com>
Fri, 1 Aug 2014 17:50:43 +0000 (13:50 -0400)
committerDan Cruson <cruson.web@gmail.com>
Fri, 1 Aug 2014 17:50:43 +0000 (13:50 -0400)
Fix regression that was causing Event Resets with Offline Contributions to be garbled.  Detailed in CRM-15069

CRM/Contribute/Form/Contribution.php

index 4063922d822e594c1b40df98d1e84f35b3e12f0d..c47304b8b7784791bf40723e6e0ec5b2459ea260 100644 (file)
@@ -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 {