CRM-14114 fix - Online recurring contribution page does not translate recurring unit
authormonishdeb <monish.deb@webaccessglobal.com>
Mon, 9 Feb 2015 12:40:10 +0000 (18:10 +0530)
committermonishdeb <monish.deb@webaccessglobal.com>
Mon, 9 Feb 2015 12:40:10 +0000 (18:10 +0530)
https://issues.civicrm.org/jira/browse/CRM-14114

CRM/Contribute/Form/ContributionPage/Amount.php

index 4ca9d4aef1d645294286c40f3d1f6e8b0707adfb..956c1d6f609070bb59b9e9434bafab4c34f2f596 100644 (file)
@@ -123,9 +123,9 @@ SELECT id
         array('onclick' => "showHideByValue('is_recur',true,'recurFields','table-row','radio',false);")
       );
       $this->addCheckBox('recur_frequency_unit', ts('Supported recurring units'),
-        CRM_Core_OptionGroup::values('recur_frequency_units', FALSE, FALSE, FALSE, NULL, 'name'),
+        CRM_Core_OptionGroup::values('recur_frequency_units', FALSE, FALSE, TRUE),
         NULL, NULL, NULL, NULL,
-        array('&nbsp;&nbsp;', '&nbsp;&nbsp;', '&nbsp;&nbsp;', '<br/>')
+        array('&nbsp;&nbsp;', '&nbsp;&nbsp;', '&nbsp;&nbsp;', '<br/>'), TRUE
       );
       $this->addElement('checkbox', 'is_recur_interval', ts('Support recurring intervals'));
       $this->addElement('checkbox', 'is_recur_installments', ts('Offer installments'));
@@ -164,9 +164,9 @@ SELECT id
         NULL, array('onclick' => "showHideAmountBlock( this, 'is_pledge_active' ); return showHideByValue('is_pledge_active',true,'pledgeFields','table-row','radio',false);")
       );
       $this->addCheckBox('pledge_frequency_unit', ts('Supported pledge frequencies'),
-        CRM_Core_OptionGroup::values('recur_frequency_units', FALSE, FALSE, FALSE, NULL, 'name'),
+        CRM_Core_OptionGroup::values('recur_frequency_units', FALSE, FALSE, TRUE),
         NULL, NULL, NULL, NULL,
-        array('&nbsp;&nbsp;', '&nbsp;&nbsp;', '&nbsp;&nbsp;', '<br/>')
+        array('&nbsp;&nbsp;', '&nbsp;&nbsp;', '&nbsp;&nbsp;', '<br/>'), TRUE
       );
       $this->addElement('checkbox', 'is_pledge_interval', ts('Allow frequency intervals'));
       $this->addElement('text', 'initial_reminder_day', ts('Send payment reminder'), array('size' => 3));