$this->_values['membership_id'] = $membership->id;
}
}
- if ($this->_priceSetId && !empty($this->_useForMember) && !empty($this->_lineItem)) {
- foreach ($this->_lineItem[$this->_priceSetId] as & $priceFieldOp) {
- if (!empty($priceFieldOp['membership_type_id']) && $membership->membership_type_id == $priceFieldOp['membership_type_id']) {
- $membershipOb = $membership;
- $priceFieldOp['start_date'] = $membershipOb->start_date ? CRM_Utils_Date::formatDateOnlyLong($membershipOb->start_date) : '-';
- $priceFieldOp['end_date'] = $membershipOb->end_date ? CRM_Utils_Date::formatDateOnlyLong($membershipOb->end_date) : '-';
- }
- else {
- $priceFieldOp['start_date'] = $priceFieldOp['end_date'] = 'N/A';
- }
- }
- $this->_values['lineItem'] = $this->_lineItem;
- $this->assign('lineItem', $this->_lineItem);
- }
}
+ $this->assign('lineItem', $this->isQuickConfig() ? NULL : $this->getLineItems());
if (!empty($errors)) {
$message = $this->compileErrorMessage($errors);
$form->_params['source'] = $paymentParams['contribution_source'];
}
- // get the price set values for receipt.
- if ($form->_priceSetId && $form->_lineItem) {
- $form->_values['lineItem'] = $form->_lineItem;
- $form->_values['priceSetID'] = $form->_priceSetId;
- }
-
$form->_values['contribution_id'] = $contribution->id;
$form->_values['contribution_page_id'] = $contribution->contribution_page_id;