Stop setting undeclared property in previously shared code
authorEileen McNaughton <emcnaughton@wikimedia.org>
Sun, 23 Jul 2023 23:38:54 +0000 (11:38 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Sun, 23 Jul 2023 23:38:54 +0000 (11:38 +1200)
CRM/Contribute/Form/Contribution/Confirm.php
CRM/Contribute/Form/Contribution/ThankYou.php

index 4005992021da498ce1c8bbf45ad42f36361b703a..3dd4ed65f1ffc9a640b6bc3b0afde6e2dcc58338 100644 (file)
@@ -772,11 +772,9 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr
                 $memType['current_membership'] = $membership['end_date'];
                 if (!$endDate) {
                   $endDate = $memType['current_membership'];
-                  $this->_defaultMemTypeId = $memType['id'];
                 }
                 if ($memType['current_membership'] < $endDate) {
                   $endDate = $memType['current_membership'];
-                  $this->_defaultMemTypeId = $memType['id'];
                 }
               }
             }
index 5eb6769dd14dee9f830367382a477271af905dbb..9adb17ecdc1c658e00036b223248ac28b33fcab3 100644 (file)
@@ -403,11 +403,9 @@ class CRM_Contribute_Form_Contribution_ThankYou extends CRM_Contribute_Form_Cont
                 $memType['current_membership'] = $membership['end_date'];
                 if (!$endDate) {
                   $endDate = $memType['current_membership'];
-                  $this->_defaultMemTypeId = $memType['id'];
                 }
                 if ($memType['current_membership'] < $endDate) {
                   $endDate = $memType['current_membership'];
-                  $this->_defaultMemTypeId = $memType['id'];
                 }
               }
             }