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

Rules that depends from other rules they are not validated in some cases #47

Closed
torrentalle opened this issue Aug 14, 2015 · 1 comment
Labels
Milestone

Comments

@torrentalle
Copy link
Member

The rules that depends from other rules only are validated when the dependant filed has any rule.

In this case JsValidation works as expected

$rules = array(
     'password'=>'required_with:username',
     'username'=>'min:3',
);

But in this other case JsValidation throws an Javascript Exception and form is submitted.

$rules = array(
     'password'=>'required_with:username',
     'username'=>'min:3',
);
@torrentalle
Copy link
Member Author

Republish Javascript files after composer update to apply the patch

composer update
php  artisan vendor:publish --provider="Proengsoft\JsValidation\JsValidationServiceProvider" --tag="public" --force

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant