Skip to content

money value can start with a minus#15567

Merged
brandonkelly merged 4 commits into5.xfrom
bugfix/15565-money-value-can-start-with-a-minus
Aug 21, 2024
Merged

money value can start with a minus#15567
brandonkelly merged 4 commits into5.xfrom
bugfix/15565-money-value-can-start-with-a-minus

Conversation

@i-just
Copy link
Copy Markdown
Contributor

@i-just i-just commented Aug 20, 2024

Description

Money value can start with a minus, too. If the value starts with a minus sign followed by only digits, we don’t have to normalise it.

Also, when normalising the value, use the field’s currency as a fallback. Without it, normalising, e.g. a plain text value of “10.99” can fail.

Related issues

#15565

@brandonkelly brandonkelly merged commit d2f7190 into 5.x Aug 21, 2024
@brandonkelly brandonkelly deleted the bugfix/15565-money-value-can-start-with-a-minus branch August 21, 2024 19:01
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