-
Notifications
You must be signed in to change notification settings - Fork 56
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
Select Array validation rule don't work even if the attribute is defined as require #61
Comments
@JDL747 could you please provide the validation rules you where using? |
rules ngRestAttributeTypes |
@JDL747 have you tried to change the handling of empty values? https://www.yiiframework.com/doc/guide/2.0/en/input-validation#handling-empty-inputs |
I just tested - yes i can confirm this won't work out of the box until you set the isEmpty validator as "0" is not an empty value. |
When using the
selectArray
ngRest attribute type, the validation rule doesn't work even if the attribute is defined as required.Expected Result
On save or update, the form should show a message stating that the field cannot be empty
What do you get instead?
The form being save or update without any validation
The text was updated successfully, but these errors were encountered: