CRM-16222 Fix-Forms with 'Other amount' field should display a currency symbol with...
authorpratikshad <pratiksha.dubey@webaccess.co.in>
Fri, 10 Apr 2015 11:52:42 +0000 (17:22 +0530)
committerpratikshad <pratiksha.dubey@webaccess.co.in>
Fri, 10 Apr 2015 11:52:42 +0000 (17:22 +0530)
----------------------------------------
* CRM-16222: Forms with "Other amount" field should display a currency symbol with the field
  https://issues.civicrm.org/jira/browse/CRM-16222

CRM/Price/BAO/PriceField.php

index 64a225c59bdf01269f28ebc57e6f8bd2b41d0f03..5872a361e6c221b3f5f82e80718b681c70b2a759 100644 (file)
@@ -322,7 +322,7 @@ class CRM_Price_BAO_PriceField extends CRM_Price_DAO_PriceField {
         $extra = array();
         if (!empty($qf->_quickConfig) && !empty($qf->_contributionAmount)) {
           foreach ($fieldOptions as &$fieldOption) {
-            if ($fieldOption['name'] == 'other_amount') {
+            if (strtolower($fieldOption['name']) == 'other_amount') {
               $fieldOption['label'] = $fieldOption['label'] . '  ' . $currencySymbol;
             }
           }