Skip to content

/country/add: DuplicateKeyException when name contains mix of spaces and hyphens #487

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

Closed
php-coder opened this issue Oct 5, 2016 · 0 comments
Assignees
Milestone

Comments

@php-coder
Copy link
Owner

Yet another one of consequence of #205: after denying to specify multiple hyphens in #403 it's still possible to have DuplicateKeyException:

  • create category with name te-st
  • after that try to create another category with name te- st

We should add yet another validator that takes name, convert it to slug and checks in database whether it exist or not.

@php-coder php-coder added this to the 0.4 milestone Oct 5, 2016
@php-coder php-coder self-assigned this Oct 16, 2016
bodom91 pushed a commit to bodom91/mystamps that referenced this issue Aug 2, 2017
This fixes DuplicateKeyException when name contains mix of spaces and hyphens.

Fix php-coder#487
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant