From: Andrew Engelbrecht Date: Fri, 12 Jan 2018 22:19:17 +0000 (-0500) Subject: corrected variable name X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ca0ebd7210dc033cbd9b76dbbcb5cdc4d82ac13c;p=civicrm-core.git corrected variable name this code was moved from another location during a git rebase, and the a variable name needed to change. --- diff --git a/CRM/Contribute/Form/ContributionBase.php b/CRM/Contribute/Form/ContributionBase.php index 396f2011d0..3bfa17967e 100644 --- a/CRM/Contribute/Form/ContributionBase.php +++ b/CRM/Contribute/Form/ContributionBase.php @@ -1339,7 +1339,7 @@ class CRM_Contribute_Form_ContributionBase extends CRM_Core_Form { } else { $this->addElement('checkbox', 'auto_renew', ts('Please renew my membership automatically.')); - $temphax =& $form->getElement('auto_renew'); + $temphax =& $this->getElement('auto_renew'); $temphax->setValue(1); } }