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

valid_url rule from validation not working correctly same as valid_url|required #2941

Closed
crustamet opened this issue May 6, 2020 · 1 comment
Labels
bug Verified issues on the current code behavior or pull requests that will fix them

Comments

@crustamet
Copy link
Contributor

Hello guys, i am trying to validate an url link only when it is filled,

i have a input for the URL to validate but i do not want to validate if the input is empty, i only want to validate when it is filled.

i get error from validation that behaves like a required field
valid_url|required

For sure this is a bug.

@crustamet crustamet added the bug Verified issues on the current code behavior or pull requests that will fix them label May 6, 2020
@crustamet
Copy link
Contributor Author

Oh i see i have to use permit_empty rule to actually escape this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Verified issues on the current code behavior or pull requests that will fix them
Projects
None yet
Development

No branches or pull requests

1 participant