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/core#407 Fix mis-saving of price field values under localisation. #13226

Merged
merged 1 commit into from
Dec 5, 2018

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Dec 4, 2018

Overview

Fixes a localisation bug whereby membership config on contribution pages results in it saving (or trying) to save the wrong amount for comma-decimal sites

Before

Set up a site as comma for decimal place & . for thousand separator.
-create a new membership type

  • add this type to a 'non-price set' membership page
  • error on save
    screenshot 2018-12-05 10 53 49

After

Saves correctly

Technical Details

The amount is being inappropriately cleaned in the BAO layer - these values should always be clean by the time they get here

Comments

@mattwire

The amount is being inappropriately cleaned in the BAO layer - these values should always be clean by the time they get here
@civibot
Copy link

civibot bot commented Dec 4, 2018

(Standard links)

@civibot civibot bot added the master label Dec 4, 2018
@eileenmcnaughton eileenmcnaughton changed the title Fix mis-saving of price field values under localisation. dev/core#407 Fix mis-saving of price field values under localisation. Dec 4, 2018
@seamuslee001
Copy link
Contributor

(CiviCRM Review Template WORD-1.2)

  • General standards
    • (r-explain) Pass
    • (r-user) Pass reduces a fatal error
    • (r-doc) Pass
    • (r-run) Pass I tested this and was able to replicate the fatal error, applied the patch and confirmed that it worked after. I also confirmed that the correct amount was saved into the database.
  • Developer standards

@seamuslee001 seamuslee001 merged commit 2a057ef into civicrm:master Dec 5, 2018
@eileenmcnaughton eileenmcnaughton deleted the price_amt branch December 5, 2018 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants