Unverified Commit af52a180 authored by eileen's avatar eileen 🎱 Committed by GitHub

Merge pull request #12356 from pradpnayak/issue-202

dev/core/issues/202, check if default currency is set
parents 6dd26ccd 91a33228
......@@ -1868,7 +1868,7 @@ class CRM_Core_Form extends HTML_QuickForm_Page {
$setDefaultCurrency = TRUE
) {
$currencies = CRM_Core_OptionGroup::values('currencies_enabled');
if (!array_key_exists($defaultCurrency, $currencies)) {
if (!empty($defaultCurrency) && !array_key_exists($defaultCurrency, $currencies)) {
Civi::log()->warning('addCurrency: Currency ' . $defaultCurrency . ' is disabled but still in use!');
$currencies[$defaultCurrency] = $defaultCurrency;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment