CRM-17850 cleanup based on feedback
authoreileenmcnaughton <eileen@fuzion.co.nz>
Thu, 21 Jan 2016 02:04:37 +0000 (02:04 +0000)
committereileenmcnaughton <eileen@fuzion.co.nz>
Thu, 21 Jan 2016 02:04:37 +0000 (02:04 +0000)
CRM/Contribute/Form/UpdateSubscription.php

index c081d1b640f12690ef80def629d39ab41a1174c5..91cbd867793e1c3bfcaf1c3033bfea376efb9849 100644 (file)
@@ -130,10 +130,7 @@ class CRM_Contribute_Form_UpdateSubscription extends CRM_Core_Form {
     $alreadyHardCodedFields = array('amount', 'installments');
     foreach ($this->editableScheduleFields as $editableScheduleField) {
       if (!in_array($editableScheduleField, $alreadyHardCodedFields)) {
-        $this->addField($editableScheduleField, array(
-          'entity' => 'ContributionRecur',
-          'context' => $this->getDefaultContext(),
-        ));
+        $this->addField($editableScheduleField, array('entity' => 'ContributionRecur'));
       }
     }