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

Check uniq entity : exclude current entity #143

Open
bastos71 opened this issue Mar 16, 2018 · 0 comments
Open

Check uniq entity : exclude current entity #143

bastos71 opened this issue Mar 16, 2018 · 0 comments

Comments

@bastos71
Copy link

It seems that the checkUniqueEntity validator is missing a big point :

if I'm updating an User entity , leting the unique field login with its original value, the validator will return an error "Value already used" because it does not exclude the current entity from the check action.

I don't know if it has to be done in Fp\JsFormValidatorBundle\Controller\AjaxController::checkUniqueEntityAction(), but at least there should have more data sended through the request to allow us to create our own checkUniqueEntity validator who will handle these cases

See Chapter 3.9 from the documentation for more details.

I will provide a pull request

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

No branches or pull requests

1 participant