Tag synonym already exists error, when removing and re-adding with different capitalisation #1436
Labels
area: ruby
Changes to server-side code
complexity: easy
Issues that should take limited effort to resolve/fix/build.
hacktoberfest
This repo participates in Hacktoberfest. For suitable issues and Hacktoberfest-PRs
meta: good first issue
Good for newcomers
meta: help wanted
Extra attention is needed
priority: medium
type: bug
Something isn't working
Describe the bug
When removing a tag synonym, and re-adding it in the same action (so without hitting save), but with different capitalisation, it will give a "There were some errors while saving this tag: Tag synonyms A tag synonym with the name X already exists." (where the new tag name replaces X). It will also show both versions as being synonyms.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The new capitalisation version is saved correctly.
Screenshots
After removing the old one (AD) and adding the new one (ad) and pressing "save":
The text was updated successfully, but these errors were encountered: