-
Notifications
You must be signed in to change notification settings - Fork 72k
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
Temporary Target Top and Bottom validation problem #4993
Comments
What plugin is this from? It's not one of the core careportal events. OpenAPS? |
Yup OpenAPS users get to enter temporary target events. That error is really strange, which browser is that? The error indicates a simple check between the numbers is failing (is 130 < 90 / is 90 > 130). |
Yeah I'm staring at the validation code in |
Yes, OpenAPS. Current version of Chrome for windows. Happens on Android and multiple comptuers. |
I know some changes were made to the Temporary Target options in 0.12.3 to try and enforce the Top being higher than the Bottom. It ended up breaking the Temporary Target Cancel event and this issue, as far as I can tell. |
Describe the bug
Setting a temporary target with a Top value 100 or above and a Bottom value of 99 or below results in an error that says "The low target must be lower than the high target and high target must be higher than the low target." and the temporary target cannot be submitted.
If I enter the bottom value with a "0" in front like "080" and a top value over 100, then the error message is not triggered.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Should be able to enter a smaller number in the "bottom" field without a leading 0 under 100 and a top number 100 or over without an error.
Screenshots
![image](https://user-images.githubusercontent.com/46848705/65217713-b7b4a000-da69-11e9-96e2-c31ef70b4c4f.png)
![image](https://user-images.githubusercontent.com/46848705/65217776-dc107c80-da69-11e9-88c6-bff57e926784.png)
Your setup information
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: