This repository was archived by the owner on Mar 12, 2020. It is now read-only.
remove dependency on required, possibility to add new options without the need to distroy validator, added tests#608
Open
adilsonarc wants to merge 3 commits into1000hz:masterfrom
adilsonarc:dev
Open
remove dependency on required, possibility to add new options without the need to distroy validator, added tests#608adilsonarc wants to merge 3 commits into1000hz:masterfrom adilsonarc:dev
adilsonarc wants to merge 3 commits into1000hz:masterfrom
adilsonarc:dev
Conversation
added 3 commits
January 13, 2017 16:10
the problem was that options were not been saved, because at merge of options (default, current, new) the current options were not considered as were lost on the process, "$this.data()" didn't work at least for this purpose. the second problem was that the constructor of new validator was depend of "if(!data)" that was only true on the first call, what caused to call with new options were never saved at data.
remove dependency on required so multiple input custom validations don't have double message example: Input telephone and mobilephone either one of the is required but not both. In the case of fill only one filed, the other would get required validator error.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
marge dev with master