CRM-14114 fix in addition
authormonishdeb <monish.deb@webaccessglobal.com>
Wed, 4 Feb 2015 13:31:57 +0000 (19:01 +0530)
committermonishdeb <monish.deb@webaccessglobal.com>
Wed, 4 Feb 2015 13:31:57 +0000 (19:01 +0530)
----------------------------------------
* CRM-14114: Online recurring contribution page does not translate recurring unit
  https://issues.civicrm.org/jira/browse/CRM-14114

CRM/Contribute/Form/Contribution/Main.php

index 18a5efc135f8ebbd8d2837fd827fc191cced399b..74f1c66776e9840754016573d8b6aed50bc3d506 100644 (file)
@@ -699,7 +699,7 @@ class CRM_Contribute_Form_Contribution_Main extends CRM_Contribute_Form_Contribu
     else {
       $form->assign('one_frequency_unit', FALSE);
       $units = array();
-      $frequencyUnits = CRM_Core_OptionGroup::values('recur_frequency_units');
+      $frequencyUnits = CRM_Core_OptionGroup::values('recur_frequency_units', FALSE, FALSE, TRUE);
       foreach ($unitVals as $key => $val) {
         if (array_key_exists($val, $frequencyUnits)) {
           $units[$val] = $frequencyUnits[$val];