Skip to content
Snippets Groups Projects
Commit cd4bfec7 authored by Dave Greenberg's avatar Dave Greenberg
Browse files

Merge pull request #1385 from colemanw/symbols

Fix currency symbols CRM-13144
Will do a further commit since orderColumn param needs to be TRUE so that currency multi-select is sorted alphabetically.
parents 94b58e47 b6190c8b
Branches
Tags
No related merge requests found
......@@ -490,7 +490,10 @@ class CRM_Core_Config_Variables extends CRM_Core_Config_Defaults {
static $cachedSymbol = NULL;
if (!$cachedSymbol || $defaultCurrency) {
if ($this->defaultCurrency || $defaultCurrency) {
$this->currencySymbols = CRM_Contribute_BAO_Contribution::buildOptions('currency');
$this->currencySymbols = CRM_Core_PseudoConstant::get('CRM_Contribute_DAO_Contribution', 'currency', array(
'labelColumn' => 'symbol',
'orderColumn' => FALSE,
));
$currency = $defaultCurrency ? $defaultCurrency : $this->defaultCurrency;
$cachedSymbol = CRM_Utils_Array::value($currency, $this->currencySymbols, '');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment