/**
* Set variables up before form is built.
- *
- * @return void
*/
public function preProcess() {
parent::preProcess();
$this->assign('membership_amount', $membershipAmount);
$this->assign('renewal_mode', $renewalMode);
- CRM_Member_BAO_Membership::buildMembershipBlock($this,
- $this->_id,
+ $this->buildMembershipBlock(
$this->_membershipContactID,
FALSE,
$membershipTypeID,
TRUE,
NULL
);
+
+ if (!empty($params['auto_renew'])) {
+ $this->assign('auto_renew', TRUE);
+ }
}
$this->_separateMembershipPayment = $this->get('separateMembershipPayment');