Skip to content

Commit

Permalink
Set default currency on the contribution tab
Browse files Browse the repository at this point in the history
  • Loading branch information
jitendrapurohit committed Jul 23, 2023
1 parent 192a3ac commit 4beb49b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AdminForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -1138,7 +1138,7 @@ private function buildContributionTab() {
$this->form['contribution']['sets']['contribution']['contribution_1_settings_currency'] = [
'#type' => 'select',
'#title' => t('Currency'),
'#default_value' => wf_crm_aval($this->data, "contribution:1:currency"),
'#default_value' => wf_crm_aval($this->data, "contribution:1:currency", $this->utils->wf_crm_get_civi_setting('defaultCurrency')),
'#options' => \CRM_Core_OptionGroup::values('currencies_enabled'),
'#required' => TRUE,
];
Expand Down

0 comments on commit 4beb49b

Please sign in to comment.