CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.1 Release Testing (Moderator: Kurund Jalmi) »
  • Localization
Pages: [1]

Author Topic: Localization  (Read 841 times)

ylavoie

  • I’m new here
  • *
  • Posts: 19
  • Karma: 0
    • Regroupement de l'industrie électronique du Québec
  • CiviCRM version: 4.2.4
  • CMS version: Joomla 2.5.7
  • MySQL version: 5.5.24
  • PHP version: 5.3.10
Localization
January 02, 2012, 11:13:17 am
I am using 4.0.8 and found this bug which haven't been corrected in 4.1beta.

Localization will fail to save enabled currency when no currencies were previously set because the current code assume that values['defaultCurrency'] is an array.
Fix is below.

diff Localization.php.orig Localization.php
232c232
<         // save enabled currencies and defaul currency in option group 'currencies_enabled'
---
>         // save enabled currencies and default currency in option group 'currencies_enabled'
235c235
<             $values['currencyLimit'] = $values['defaultCurrency'];
---
>             $values['currencyLimit'][] = $values['defaultCurrency'];

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.1 Release Testing (Moderator: Kurund Jalmi) »
  • Localization

This forum was archived on 2017-11-26.