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

money field to distinguish between zero and null #12132

Merged

Conversation

i-just
Copy link
Contributor

@i-just i-just commented Oct 17, 2022

Description

Money field was behaving as if it was not able to store zero as value. If zero or null were returned from the DB, money field was showing as empty in both cases.

Updated twig template to not treat zero value as no value.

Updated mask behaviour to make it clear that when the 0.00 placeholder shows, when you click into an empty field, it's only a placeholder and not an actual value. User actually has to type in 0 to specify a zero value.

Related issues

#12122

@i-just i-just requested a review from a team as a code owner October 17, 2022 08:55
@brandonkelly brandonkelly self-requested a review as a code owner October 18, 2022 00:01
@brandonkelly brandonkelly merged commit 09a7bf3 into develop Oct 18, 2022
@brandonkelly brandonkelly deleted the bugfix/12122-money-field-distinguish-zero-and-null branch October 18, 2022 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants