Snail when editing non-numeric characters on shipping method fees #8249
Labels
bug-s4
The bug is annoying, but doesn't prevent from using the platform. Not so many users are impacted.
good first issue
hackathon
Issues for upcoming hackathons
Description
In all things similar to #6942, but concerning shipping method fees.
Updating a shipping method can cause a server error when entering invalid values.
Expected Behavior
Invalid values should not be allowed or there should be a proper error message.
Actual Behaviour
It shows the snail.
Steps to Reproduce
'20.0'
with the single quotes as fee amount.Animated Gif/Screenshot
Workaround
Severity
bug-s1: a critical feature is broken: checkout, payments, signup, login
bug-s2: a non-critical feature is broken, no workaround
bug-s3: a feature is broken but there is a workaround
bug-s4: it's annoying, but you can use it
bug-s5: we can live with it, only a few users impacted
https://github.com/openfoodfoundation/openfoodnetwork/wiki/Bug-severity
Your Environment
Possible Fix
The only figures that should be allowed are:
The error message should read:
Invalid input. Please use only numbers. For example: 10, 5.5, -20
See PR which introduces a fix for a similar issue, regarding transaction fees.
The text was updated successfully, but these errors were encountered: