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#4115 Afform - Handle decimal number fields #26124

Merged
merged 1 commit into from May 2, 2023

Conversation

colemanw
Copy link
Member

Overview

Fixes the issues noted in dev/core#4115.

Before

Custom fields of type "Float" are not validated and do not support localized decimal separators (, vs .)

After

Fixed

Technical Details

I switched to html5 type="number" which, combined with a step attribute, allows non-integer values and should handle localized decimal separators on most browsers.

@civibot
Copy link

civibot bot commented Apr 28, 2023

No issue was found matching the number given in the pull request title. Please check the issue number.

@civibot
Copy link

civibot bot commented Apr 28, 2023

(Standard links)

@civibot civibot bot added the master label Apr 28, 2023
@colemanw
Copy link
Member Author

retest this please

@mlutfy
Copy link
Member

mlutfy commented May 2, 2023

I tested this, as well as Guy, and it works well. Thank you!

@mlutfy mlutfy merged commit 3a822c7 into civicrm:master May 2, 2023
3 checks passed
@colemanw colemanw deleted the afformNumbers branch May 3, 2023 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants