corrected variable name
authorAndrew Engelbrecht <andrew@fsf.org>
Fri, 12 Jan 2018 22:19:17 +0000 (17:19 -0500)
committerMichael McMahon <michael@fsf.org>
Thu, 20 Aug 2020 14:00:13 +0000 (10:00 -0400)
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 396f2011d05e8fb7756b03e091426963bfc46905..3bfa17967eb700b3ea7b6dacfc9a34166a89ba9e 100644 (file)
@@ -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);
           }
         }