if ($form->_eventId &&
($currency = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_Event', $form->_eventId, 'currency'))
) {
- $config = CRM_Core_Config::singleton();
- $config->defaultCurrency = $currency;
+ CRM_Core_Config::singleton()->defaultCurrency = $currency;
}
}
* @param $lineItem
* @param string $component
*/
- public static function processAmount(&$fields, &$params, &$lineItem, $component = '') {
+ public static function processAmount($fields, &$params, &$lineItem, $component = '') {
// using price set
$totalPrice = $totalTax = 0;
$radioLevel = $checkboxLevel = $selectLevel = $textLevel = array();