E-notice fix - move variable declaration to parent class.
authoreileen <emcnaughton@wikimedia.org>
Mon, 12 Mar 2018 08:02:29 +0000 (21:02 +1300)
committerColeman Watts <coleman@civicrm.org>
Mon, 12 Mar 2018 20:48:55 +0000 (16:48 -0400)
I hit this when editing a contribution with line items related to membership.

CRM/Contribute/Form/AbstractEditPayment.php
CRM/Contribute/Form/AdditionalPayment.php

index 6e01bcbd13f4226a528c5743d90c17778d1ee319..353bcad960e150278bc45713c5a99eb026490504 100644 (file)
@@ -210,6 +210,13 @@ class CRM_Contribute_Form_AbstractEditPayment extends CRM_Contact_Form_Task {
    */
   public $paymentInstrumentID;
 
+  /**
+   * Component - event, membership or contribution.
+   *
+   * @var string
+   */
+  protected $_component;
+
   /**
    * Array of fields to display on billingBlock.tpl - this is not fully implemented but basically intent is the panes/fieldsets on this page should
    * be all in this array in order like
index d63efa5dd0fcab5cc4eeef7189d2c17b49fc5f9e..77916e00fd3fef85c576ac536284808ba4626959 100644 (file)
 class CRM_Contribute_Form_AdditionalPayment extends CRM_Contribute_Form_AbstractEditPayment {
   public $_contributeMode = 'direct';
 
-  /**
-   * Related component whose financial payment is being processed.
-   *
-   * @var string
-   */
-  protected $_component = NULL;
-
   /**
    * Id of the component entity
    */