- foreach ( $this->_values['fee'] as $key => & $val ) {
- if ( $val['name'] == 'other_amount' && $val['html_type'] == 'Text' && array_key_exists( 'price_'.$key, $params ) && $params['price_'.$key] != 0 ) {
- foreach ( $val['options'] as $optionKey => & $options ) {
- $options['amount'] = CRM_Utils_Array::value( 'price_'.$key, $params );
- break;
+ foreach ( $this->_values['fee'] as $key => & $val ) {
+ if ( $val['name'] == 'other_amount' && $val['html_type'] == 'Text' && array_key_exists( 'price_'.$key, $params ) ) {
+ $params['price_'.$key] = CRM_Utils_Rule::cleanMoney($params['price_'.$key]); //Clean out any currency symbols
+ if ( $params['price_'.$key] != 0 ) {
+ foreach ( $val['options'] as $optionKey => & $options ) {
+ $options['amount'] = CRM_Utils_Array::value( 'price_'.$key, $params );
+ break;
+ }