Ensre formType is assigned to the template
authorEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 31 Mar 2022 23:31:05 +0000 (12:31 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 31 Mar 2022 23:31:28 +0000 (12:31 +1300)
CRM/Contribute/Form/Contribution.php
CRM/Pledge/Form/Pledge.php

index 694b6b346c1665867d5d83c7b8ac3120276493bd..4499623e9d437c69f5257709e3d682039c944de0 100644 (file)
@@ -608,9 +608,9 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP
     $this->assign('allPanes', $allPanes);
 
     $this->addFormRule(['CRM_Contribute_Form_Contribution', 'formRule'], $this);
+    $this->assign('formType', $this->_formType);
 
     if ($this->_formType) {
-      $this->assign('formType', $this->_formType);
       return;
     }
 
index 1f0b15f14ebaabc86917cd65d735906c48bc9ada..880ccaa0bae6a6db9f4b1217bc86e7a580f95610 100644 (file)
@@ -233,8 +233,8 @@ class CRM_Pledge_Form_Pledge extends CRM_Core_Form {
     $this->assign('allPanes', $allPanes);
     $this->assign('showAdditionalInfo', $showAdditionalInfo);
 
+    $this->assign('formType', $this->_formType);
     if ($this->_formType) {
-      $this->assign('formType', $this->_formType);
       return;
     }