If the user ID and the location ID are the same, then big problems may arise in the future #9216
Closed
2 tasks done
Labels
❓ not sure if bug
This issue has not been confirmed as a bug yet
Please confirm you have done the following before posting your bug report:
Describe the bug
Problems arise if the user and the location have the same ID number
To Reproduce
If the user ID and the location ID are the same and if assets are assigned to this location, then when the user is deleted, all assets assigned to the location are released from assignment (returned to the warehouse). For example, a location with id 23 has multiple assets assigned to it. I delete a user with id 23, when deleting a user, I select the asset status-ready for deployment. Even if the user did not have any assigned assets, all the assets assigned to the location with id 23 will be released and they will be assigned the status "ready for deployment".
Probably, this bug can affect everything that has the same id numbers.
I discovered this error a long time ago, wrote here on git, but there was no time to seek the truth from the developers. Someone from the community helped, and said that the error was due to the matching id numbers. I ask the developers to pay attention to this gross error and fix it in new releases of the program.
Screenshots
The text was updated successfully, but these errors were encountered: