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

fix division by zero in UI validation #1452

Merged
merged 1 commit into from
Mar 29, 2019
Merged

Conversation

moiikana
Copy link
Contributor

The paymenIntervalInMonths value being 0 is currently not reproducable
as its initial value is -1 and the UI validation prevents it from entering
a state where it could become 0.

This additional check will prevent the interval field from being validated
before it was selected because there is a check now for its correct
default value (-1).

https://phabricator.wikimedia.org/T215163

The paymenIntervalInMonths value being 0 is currently not reproducable
as its initial value is -1 and the UI validation prevents it from entering
a state where it could become 0.

This additional check will prevent the interval field from being validated
before it was selected because there is a check now for its correct
default value (-1).

https://phabricator.wikimedia.org/T215163
@gbirke gbirke merged commit 92eda1e into master Mar 29, 2019
@gbirke gbirke deleted the fix-division-by-zero-validation branch March 29, 2019 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants