From ca809bb63e728a8a3e980a05c438310c7779804c Mon Sep 17 00:00:00 2001 From: eileen Date: Tue, 2 Apr 2019 12:24:56 +1300 Subject: [PATCH] Add shared parent for ContributionRecur forms --- CRM/Contribute/Form/CancelSubscription.php | 6 +-- CRM/Contribute/Form/ContributionRecur.php | 63 ++++++++++++++++++++++ CRM/Contribute/Form/UpdateBilling.php | 4 +- CRM/Contribute/Form/UpdateSubscription.php | 11 +--- 4 files changed, 66 insertions(+), 18 deletions(-) create mode 100644 CRM/Contribute/Form/ContributionRecur.php diff --git a/CRM/Contribute/Form/CancelSubscription.php b/CRM/Contribute/Form/CancelSubscription.php index c904f7fa94..e596ad54ee 100644 --- a/CRM/Contribute/Form/CancelSubscription.php +++ b/CRM/Contribute/Form/CancelSubscription.php @@ -34,7 +34,7 @@ /** * This class provides support for canceling recurring subscriptions. */ -class CRM_Contribute_Form_CancelSubscription extends CRM_Core_Form { +class CRM_Contribute_Form_CancelSubscription extends CRM_Contribute_Form_ContributionRecur { protected $_paymentProcessorObj = NULL; protected $_userContext = NULL; @@ -43,10 +43,6 @@ class CRM_Contribute_Form_CancelSubscription extends CRM_Core_Form { protected $_mid = NULL; - protected $_coid = NULL; - - protected $_crid = NULL; - protected $_selfService = FALSE; /** diff --git a/CRM/Contribute/Form/ContributionRecur.php b/CRM/Contribute/Form/ContributionRecur.php new file mode 100644 index 0000000000..8363ab5b5a --- /dev/null +++ b/CRM/Contribute/Form/ContributionRecur.php @@ -0,0 +1,63 @@ +