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

#205 skip attribute validation, if min => 0 & input not exist #206

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DaveFerger
Copy link

is have an opened issue #205

this fixed it:
on form beforeValidateAttribute event we check the attribute's input is exist,
if not exist we return false, so we dont validate this attribute

otherwise:
form validation have error on not exist element
so the form submitted(yiiActiveform.js don't find form-group with has-error class), but the errorSummary updated to and show errors for non-exist inputs

@DaveFerger DaveFerger changed the title #205 skip form validation, if min => 0 & input not exist #205 skip attribute validation, if min => 0 & input not exist Apr 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant