corrected variable name
authorAndrew Engelbrecht <andrew@fsf.org>
Fri, 12 Jan 2018 22:19:17 +0000 (17:19 -0500)
committerAndrew Engelbrecht <andrew@fsf.org>
Fri, 12 Jan 2018 22:19:17 +0000 (17:19 -0500)
this code was moved from another location during a git rebase, and the a
variable name needed to change.

CRM/Contribute/Form/ContributionBase.php

index 9b74a7e2a29f766e0e5c5e0d723d1508682c6b08..e767e25b5d0133eb1b65b4ebd2beb471eff858bb 100644 (file)
@@ -1273,7 +1273,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);
           }
         }