+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
+ * @copyright CiviCRM LLC (c) 2004-2015
* $Id$
*
*/
class CRM_Contribute_Form_Contribution_ThankYou extends CRM_Contribute_Form_ContributionBase {
/**
- * Membership price set status
+ * Membership price set status.
*/
public $_useForMember;
/**
- * Set variables up before form is built
- *
- * @return void
+ * Set variables up before form is built.
*/
public function preProcess() {
parent::preProcess();
}
/**
- * Build the form object
+ * Build the form object.
*
* @return void
*/
$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');
// CRM-9491
$this->controller->reset();
}
+
}