Add shared parent for ContributionRecur forms
[civicrm-core.git] / CRM / Contribute / Form / UpdateSubscription.php
index 58f93a6fdc6f0ef37ffbaff30ecea9a25d963495..2b713af9206b1d17bac78ce63377bd3cb02fcb9a 100644 (file)
@@ -37,7 +37,7 @@
  * back in. It also uses a lot of functionality with the CRM API's, so any change
  * made here could potentially affect the API etc. Be careful, be aware, use unit tests.
  */
-class CRM_Contribute_Form_UpdateSubscription extends CRM_Core_Form {
+class CRM_Contribute_Form_UpdateSubscription extends CRM_Contribute_Form_ContributionRecur {
 
   /**
    * The recurring contribution id, used when editing the recurring contribution.
@@ -46,8 +46,6 @@ class CRM_Contribute_Form_UpdateSubscription extends CRM_Core_Form {
    */
   protected $contributionRecurID = NULL;
 
-  protected $_coid = NULL;
-
   protected $_subscriptionDetails = NULL;
 
   protected $_selfService = FALSE;
@@ -382,11 +380,4 @@ class CRM_Contribute_Form_UpdateSubscription extends CRM_Core_Form {
     }
   }
 
-  /**
-   * Explicitly declare the form context.
-   */
-  public function getDefaultContext() {
-    return 'create';
-  }
-
 }