The system allow duplicate "Asset Tag"
Please confirm you have done the following before posting your bug report:
- [ ] I have enabled debug mode
- [x ] I have read checked the Common Issues page
Describe the bug The system allow duplicate "Asset Tag"
To Reproduce When I try to "Create New" asset with an existing asset tag, I will get a warning :"The asset tag must be unique.". But when I change one asset's asset tag to an existing asset tag("Edit Asset"), it can be saved without warning.
Expected behavior The asset tag must be unique.
Screenshots
this is a screen print form https://demo.snipeitapp.com/hardware
Server (please complete the following information): official demo https://demo.snipeitapp.com/hardware
Desktop (please complete the following information):
- OS: win10
- Browser: chrome
- Version 90
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
Some time ago (in previous versions) I had the same problem. I can't repeat it now. If this is the case, then this is a bad mistake #8992
I just checked it on my system. Duplicate tags are created! If you edit an asset. If you create a new asset, you can't create a duplicate tag.
I have version 5.1.5-build 6029 (master). The demo site has a different software version-5.1.5-build 6082 (master). Developers pay attention to this error. It's not the first time she's appeared.
Just a couple days ago this issue was addressed in this commit https://github.com/snipe/snipe-it/commit/b8d413a6b820b78e373a95c2cfc5fb860c2ce3b2. That's now in the demo, and in the develop branch for you to test. Please let us now how that go if any of you happen to test it.
In the new version 5.1.5-build 6082 (master), the error is not reproduced