parent::preProcess();
// lineItem isn't set until Register postProcess
- $this->_lineItem = $this->get('lineItem');
+ $this->_lineItem = [$this->getPriceSetID() => $this->getLineItems()];;
$this->_ccid = $this->get('ccid');
$this->_params = $this->controller->exportValues('Main');
// store the fact that this is a membership and membership type is selected
if ($this->isMembershipSelected($membershipParams)) {
- $this->doMembershipProcessing($contactID, $membershipParams, $premiumParams, $this->_lineItem);
+ $this->doMembershipProcessing($contactID, $membershipParams, $premiumParams);
}
else {
// at this point we've created a contact and stored its address etc
* @param int $contactID
* @param array $membershipParams
* @param array $premiumParams
- * @param array $formLineItems
*/
- protected function doMembershipProcessing($contactID, $membershipParams, $premiumParams, $formLineItems) {
+ protected function doMembershipProcessing($contactID, $membershipParams, $premiumParams) {
if (!$this->_useForMember) {
$this->set('membershipTypeID', $this->_params['selectMembership']);
}
$membershipParams = $this->getMembershipParamsFromPriceSet($membershipParams);
if (!empty($membershipParams['selectMembership'])) {
// CRM-12233
- $membershipLineItems = $formLineItems;
+ $membershipLineItems = [$this->getPriceSetID() => $this->getLineItems()];;
if ($this->_separateMembershipPayment && $this->isFormSupportsNonMembershipContributions()) {
$membershipLineItems = [];
foreach ($this->_values['fee'] as $key => $feeValues) {