Skip to content
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

Closed
2 tasks done
it-add-pres opened this issue Jun 24, 2024 · 2 comments
Closed
2 tasks done

API get user assets is not filtering category #14948

it-add-pres opened this issue Jun 24, 2024 · 2 comments

Comments

@it-add-pres
Copy link

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

Copy link

welcome bot commented Jun 24, 2024

👋 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-add-pres
Copy link
Author

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant