corrected variable name
authorAndrew Engelbrecht <andrew@fsf.org>
Fri, 12 Jan 2018 22:19:17 +0000 (17:19 -0500)
committerAndrew Engelbrecht <andrew@fsf.org>
Thu, 21 Feb 2019 16:44:24 +0000 (11:44 -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 b3d25317c3fde65169c60d23c8b35e7843457aa6..1cf17b905ce51b88592c778bec769e6f29d96b23 100644 (file)
@@ -1333,7 +1333,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);
           }
         }