Incorrect result for currency with comma thousands separator

Created on 29 June 2021, over 3 years ago
Updated 26 January 2023, almost 2 years ago

In views_summarize_type_currency(), the regex does not work correctly.

I have a commerce price field in a row with a value of 1,000. This is summed as (float) 1.0, as per this debug screenshot:

🐛 Bug report
Status

Active

Version

1.1

Component

Code

Created by

🇳🇿New Zealand john pitcairn

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024