Assigning a license to an asset (further bug)
Please confirm you have done the following before posting your bug report:
- [x] I have enabled debug mode
- [x] I have read checked the Common Issues page
Describe the bug Shortcomings in the program when assigning a license to an asset
To Reproduce Licenses can be assigned to both a user and an asset. I am faced with the following situation. There is an asset assigned to the user. The asset (not the user) is assigned a license. Since the asset is assigned to the user, the license can be seen both through the asset and through the user. And the problem is that when the asset is released (returned to the warehouse), the license remains as if "assigned" to the user. That is, I can see this license from the user. Although the asset, with the license assigned to it, is already in stock and does not belong to any of the users (ready to issue). Therefore, the license should not be displayed to the user. I think this is a program error.
Expected behavior If a license is assigned to an asset, 1. When assigning this asset to a user, this license must also be displayed in the user profile. 2. When returning an asset from the user (returning the asset to the warehouse), the license should not be displayed in the user profile, but should only be displayed in the asset properties.
Screenshots






Server (please complete the following information):
- Snipe-IT Version v5.1.2 build 5847 (g00a7c1e9e)
- OS: [e.g. Ubuntu, CentOS] CentOS
- Web Server: [e.g. Apache, IIS] Apache
- PHP Version 7.3.22
Desktop (please complete the following information):
- OS: [e.g. iOS] Windows
- Browser [e.g. chrome, safari] all
- Version [e.g. 22] last
Error Messages
- Confirm whether the error is reproducible on the demo: https://snipeitapp.com/demo. YES
Additional context
- Is this a fresh install or an upgrade? upgrade
Add any other context about the problem here.