corrected variable name
authorAndrew Engelbrecht <andrew@fsf.org>
Fri, 12 Jan 2018 22:19:17 +0000 (17:19 -0500)
committerAndrew Engelbrecht <andrew@fsf.org>
Wed, 11 Apr 2018 21:33:32 +0000 (17:33 -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 cb49364981bcd708804ed528d6bc6cc7357228f2..d1304316c74a7a735e9dc4d821742f2d80aa23ea 100644 (file)
@@ -1277,7 +1277,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);
           }
         }