-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API get user assets is not filtering category #14948
Comments
👋 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. |
It works in the last 7.0.4 version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Debug mode
Describe the bug
When requesting assets list from a user, filtering by category, items from other categories are also listed.
https://xxx/api/v1/users/1/assets?category_id=2
Then I'll get all checked-out item of the user, including other category, with even the category number:
"category": { "id": 9, "name": "xxx" },
Reproduction steps
I've tried with and without the ?category_id=2, both gave same results.
Expected behavior
Returning only assets from the designed category
Screenshots
No response
Snipe-IT Version
v6.2.4-pre - build 12343
Operating System
Ubuntu
Web Server
Apache
PHP Version
8.1.27
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
The text was updated successfully, but these errors were encountered: