$this->storeContactFields($this->_params);
$this->beginPostProcess();
- $params = $softParams = $ids = [];
+ $params = $softParams = [];
$this->processBillingAddress();
$formValues = $this->_params;
$formValues = $this->setPriceSetParameters($formValues);
if ($this->_id) {
- $ids['membership'] = $params['id'] = $this->_id;
+ $params['id'] = $this->_id;
}
// Set variables that we normally get from context.
unset($membershipParams['contribution_status_id']);
$membershipParams['skipLineItem'] = TRUE;
unset($membershipParams['lineItems']);
- // @todo stop passing $ids (membership and userId only are set above)
- $this->setMembership((array) CRM_Member_BAO_Membership::create($membershipParams, $ids));
+ $this->setMembership((array) CRM_Member_BAO_Membership::create($membershipParams));
$lineItem[$this->_priceSetId][$id]['entity_id'] = $this->membership['id'];
$lineItem[$this->_priceSetId][$id]['entity_table'] = 'civicrm_membership';