X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContribute%2FForm%2FCancelSubscription.php;h=ecb18817c51b8a088ef19da5eeaeb10622cd0fd7;hb=39405208aafb0c24690d6fb70f0b4bbe16f24bb3;hp=b1b4b6cb52800954604dc4a031cd45b7ddfeb9f2;hpb=b5eb4be901711f519afa890eaf46801b57745143;p=civicrm-core.git diff --git a/CRM/Contribute/Form/CancelSubscription.php b/CRM/Contribute/Form/CancelSubscription.php index b1b4b6cb52..ecb18817c5 100644 --- a/CRM/Contribute/Form/CancelSubscription.php +++ b/CRM/Contribute/Form/CancelSubscription.php @@ -136,16 +136,7 @@ class CRM_Contribute_Form_CancelSubscription extends CRM_Contribute_Form_Contrib $this->buildQuickEntityForm(); // Determine if we can cancel recurring contribution via API with this processor if ($this->_paymentProcessorObj->supports('CancelRecurringNotifyOptional')) { - $searchRange = []; - $searchRange[] = $this->createElement('radio', NULL, NULL, ts('Yes'), '1'); - $searchRange[] = $this->createElement('radio', NULL, NULL, ts('No'), '0'); - - $this->addGroup( - $searchRange, - 'send_cancel_request', - ts('Send cancellation request to %1 ?', - [1 => $this->_paymentProcessorObj->getTitle()]) - ); + $this->addRadio('send_cancel_request', ts('Send cancellation request to %1 ?', [1 => $this->_paymentProcessorObj->getTitle()]), [ts('No'), ts('Yes')]); } else { $this->assign('cancelRecurNotSupportedText', $this->_paymentProcessorObj->getText('cancelRecurNotSupportedText', []));