Features when working with locations
Debug mode
- [X] I have enabled debug mode
- [X] I have read checked the Common Issues page
Describe the bug
With a mass audit (it is also possible with a simple audit), you can get into an unpleasant situation. If you do not set the location during the audit and check the Update asset location, then this action will erase the location of the assets. If an asset is assigned to a location, then when we try to view the assigned assets to this location, we will not see these assets.
Reproduction steps
- Assign the asset to the location
- Open the location, and in the assets field we see the assets assigned to this location
- We are doing an audit of the asset. We do not select the location from the drop-down list. Check the box on the Update asset allocation option. We conduct an audit.
- We open the location, and in the assets field we do not see the assets assigned to this location ...
Expected behavior
There are probably several options for discussion. It may be worth adding an alert that if there is no selected location and the "Update asset location" option is selected, existing locations will be deleted.
Still, it is very strange to have such an opportunity, to take away from a location its essence (the essence of the location) - its location. This is incomprehensible to me. In my opinion, this possibility should be excluded.
The view of assets assigned to users or locations varies. If the user does not have a location, then we will still see the assets assigned to him. If the assets assigned to the location do not have a location specified, then it will be difficult to search for these assets - either directly by tag or by name.. but only through search. This is very inconvenient.
Screenshots

Snipe-IT Version
5.4.1
Operating System
Windows
Web Server
Apache
PHP Version
7.4.16
Operating System
No response
Browser
No response
Version
No response
Device
No response
Operating System
No response
Browser
No response
Version
No response
Error messages
No response
Additional context
No response
This is incomprehensible to me. In my opinion, this possibility should be excluded.
People requested it, what can I say.
The locations view has changed a lot since this was opened. I'm going to close this for now, but you're free to open a new issue if you're still having issues.