-
-
Notifications
You must be signed in to change notification settings - Fork 213
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
Can't update client because "Client Id _clientId_ already exists" #227
Comments
Hi @pavvlik777 - thanks for reporting your issue, I will check it! |
I have checked it and it works correctly for me. Id is not stored in hidden field but it is correctly populated from URL. |
What version of Admin UI do you use? |
2.3.0 |
Let me check it again. Adding of |
Yes |
OK, I will merge your PR and release it in release 2.4.0. |
Can you also check console in your browser in case that you have some JS errors? |
Why do you have |
Ok, interesting, I have never seen it before. 😁 |
Released in 2.4.0. |
Describe the bug
When clicking 'Save Client' button client is not updated and 'Client Id clientId already exists' error received
To Reproduce
Result
Error received

Expected result
Client is successfully updated
Notes
It appears that issue is caused by missing
<input type="hidden" asp-for="Id" />
tag on client configuration page. Because of that model.Id is 0 on POST request and backend trying to create client rather than update existing. Issue wasn't happening on 1.1.0 version, because there was tag on basics tab.The text was updated successfully, but these errors were encountered: