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#1113 - Decimal Separator - Invalid value "total_amount" (NaN,N) creating or editing a membership #16429

Merged
merged 1 commit into from
Jul 17, 2020

Conversation

CsarRamos
Copy link
Contributor

Overview

Invalid value in filed "total_amount" (NaN,N) when creating or editing a membership in some cases, more info here and steps to reproduce this error: https://lab.civicrm.org/dev/core/issues/1113

Before

If you dont remove the value (NaN,N) you cannot create or edit membreship.

After

The value is in correct format and you can create or edit a membership

@civibot
Copy link

civibot bot commented Jan 30, 2020

(Standard links)

@civibot civibot bot added the master label Jan 30, 2020
@jitendrapurohit
Copy link
Contributor

Hi @CsarRamos. I've just checked this PR and was able to replicate the issue from the steps mentioned on gitlab.

I see that an incorrect amount is displayed while creating the membership. To replicate,

  • Click on Add Membership button.
  • Select General mem type.
  • The Amount in payment section is set to 100.000.000.000,00 instead of 100,00

image

This is after applying this PR and keeping the thousand separator value same as mentioned in https://lab.civicrm.org/dev/core/issues/1113.

Can you pls confirm?

@CsarRamos
Copy link
Contributor Author

Hi @CsarRamos. I've just checked this PR and was able to replicate the issue from the steps mentioned on gitlab.

I see that an incorrect amount is displayed while creating the membership. To replicate,

  • Click on Add Membership button.
  • Select General mem type.
  • The Amount in payment section is set to 100.000.000.000,00 instead of 100,00

image

This is after applying this PR and keeping the thousand separator value same as mentioned in https://lab.civicrm.org/dev/core/issues/1113.

Can you pls confirm?

Hi @jitendrapurohit, you're right, I'm sorry, now I update the pull request with a possible solution.

@eileenmcnaughton
Copy link
Contributor

I tested this and it works - I'd rather a bigger clean up but that is definitely non-blocking on this.

@eileenmcnaughton eileenmcnaughton merged commit c74fb0b into civicrm:master Jul 17, 2020
@CsarRamos CsarRamos deleted the dev/core#1113 branch July 17, 2020 07:55
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.

3 participants