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

EZP-28646: Validation alert for map location which is not required #267

Merged
merged 1 commit into from
Dec 21, 2017

Conversation

sunpietro
Copy link
Contributor

Question Answer
Tickets https://jira.ez.no/browse/EZP-28646
Bug fix? yes/no
New feature? yes/no
BC breaks? yes/no
Tests pass? yes/no
Doc needed? yes/no
License GPL-2.0

@sunpietro
Copy link
Contributor Author

@barbaragr please, test cases with required and non-required map fields.

@@ -19,13 +19,14 @@
const result = { isError: false };
const label = input.closest('.ez-data-source__field').querySelector('.ez-data-source__label').innerHTML;
const isNumber = !isNaN(value);
const isInRange = (value <= max && value >= min);
const isCorrectValue = isNumber && (value <= max && value >= min);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it still needed?

@sunpietro sunpietro force-pushed the EZP-28646-fix-map-validation branch from d489101 to f3877f9 Compare December 21, 2017 15:13
@m-tyrala m-tyrala self-assigned this Dec 21, 2017
Copy link
Contributor

@m-tyrala m-tyrala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QA tests ok.

@m-tyrala m-tyrala removed their assignment Dec 21, 2017
@lserwatka lserwatka merged commit 41ec736 into master Dec 21, 2017
@lserwatka lserwatka deleted the EZP-28646-fix-map-validation branch December 21, 2017 16:04
mateuszdebinski pushed a commit that referenced this pull request Oct 25, 2022
Co-authored-by: Michał Grabowski <[email protected]>
Co-authored-by: Marek Nocoń <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants