Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev/financial#171 - Don't pass already formatted data to crmMoney on contact summary for custom fields #19880

Merged
merged 1 commit into from
Mar 24, 2021

Conversation

demeritcowboy
Copy link
Contributor

Overview

https://lab.civicrm.org/dev/financial/-/issues/171

Passing already formatted data to crmMoney gives a false warning about a missing INTL because it also checks if the input is non-numeric. If you have a custom field of type money dropdown with a currency symbol included in the option choice labels it triggers this.

Before

warning

After

No warning, but now if you have a money text field the currency symbol no longer displays. But at the same time, this also "fixes" some double decimal separator replacement I was seeing a while ago and didn't know where it was coming from. i.e. 12,34 (US 12.34) would get displayed as 12 34 (thousands separator here was a space).

Technical Details

Comments

@civibot
Copy link

civibot bot commented Mar 24, 2021

(Standard links)

@civibot civibot bot added the master label Mar 24, 2021
@eileenmcnaughton
Copy link
Contributor

thanks for the sleuthing @demeritcowboy

@eileenmcnaughton eileenmcnaughton merged commit cd3523a into civicrm:master Mar 24, 2021
@demeritcowboy demeritcowboy deleted the crmmoney2 branch March 24, 2021 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants