fix: support comma-separated currency input for budgeted_spending #2500 #2516
Reference in New Issue
Block a user
Delete Branch "comma-fails-bug"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What this does
This pull request fixes an issue where users would see a validation error (“Enter a number”) when trying to input currency values like 1,234.56 in the budget form. The problem was that Rails didn’t recognize numbers with commas as valid.
To solve this, we now sanitize the budgeted_spending input by removing commas before it's processed — so users can enter currency in a more natural way without running into errors.
What changed
Related issue
Fixes #2500
This repo is no longer maintained. Want to submit your PR here instead, @Mohan82git? 🙏
There is no such issue there so i guess that bug is fixed
Pull request closed