From bd4cefac0a781932353df3031701e58a7e5bfc61 Mon Sep 17 00:00:00 2001 From: eileen Date: Mon, 12 Mar 2018 21:02:29 +1300 Subject: [PATCH] E-notice fix - move variable declaration to parent class. I hit this when editing a contribution with line items related to membership. --- CRM/Contribute/Form/AbstractEditPayment.php | 7 +++++++ CRM/Contribute/Form/AdditionalPayment.php | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CRM/Contribute/Form/AbstractEditPayment.php b/CRM/Contribute/Form/AbstractEditPayment.php index 6e01bcbd13f4..353bcad960e1 100644 --- a/CRM/Contribute/Form/AbstractEditPayment.php +++ b/CRM/Contribute/Form/AbstractEditPayment.php @@ -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 diff --git a/CRM/Contribute/Form/AdditionalPayment.php b/CRM/Contribute/Form/AdditionalPayment.php index d63efa5dd0fc..77916e00fd3f 100644 --- a/CRM/Contribute/Form/AdditionalPayment.php +++ b/CRM/Contribute/Form/AdditionalPayment.php @@ -37,13 +37,6 @@ 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 */