Skip to content

Commit

Permalink
Refs #37248,Remove control Copied Contrib Type Source constant.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chang Shu-Huai committed Jan 16, 2024
1 parent 28365c3 commit 3ee093a
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions CRM/Admin/Form/Setting/Recurring.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,12 @@ public function buildQuickForm() {
);
$this->addElement('select', 'recurringCopySetting', ts('Copy Contribution'), $option);

if (defined('ENABLE_COPY_CONTRIBUTION_PAGE_TYPE') && ENABLE_COPY_CONTRIBUTION_PAGE_TYPE) {
//add select option
$options = array(
'0' => ts("From source contribution."),
'1' => ts("From contribution page setting."),
);
$this->addElement('select', 'copyContributionTypeSource', ts("Copied Contribution Type Source"), $options);
}
//add select option
$options = array(
'0' => ts("From source contribution."),
'1' => ts("From contribution page setting."),
);
$this->addElement('select', 'copyContributionTypeSource', ts("Copied Contribution Type Source"), $options);

// redirect to Administer Section After hitting either Save or Cancel button.
$session = CRM_Core_Session::singleton();
Expand Down

0 comments on commit 3ee093a

Please sign in to comment.