-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Open
Labels
issue: bugIssue reporting a bugIssue reporting a bugsource: core:adminSource is core/admin packageSource is core/admin packagestatus: pending reproductionWaiting for free time to reproduce the issue, or more informationWaiting for free time to reproduce the issue, or more information
Description
Node Version
24.14.0
Package Manager
yarn
Package Manager Version
4.12.0
Strapi Version
5.40.0
Operating System
MacOS
Database
SQLite
Javascript or Typescript
Javascript
Reproduction URL
No response
Bug Description
If you are a user with multiple roles then in the homepage entries widgets (Last edited entries, Last published entries, Entries, and Statistics) then you will see duplicate entries, one duplicate for each role you have.
Steps to Reproduce
- Start as a user with 1 role
- In my case I have blog posts so I create a blog post called "Apples"
- View the homepage dashboard and notice you see the blog post only listed once in the entries and it's only counted once in the "Entries" and "Statistics"
- Give my user 2 more roles
- View the homepage dashboard and notice you see the blog post only listed 3 times in the entries and it's now counted 3 times in the "Entries" and "Statistics"
Expected Behavior
I would expect to only see each entry displayed and counted once, not multiplied by how many roles I have.
Logs
Code Snippets
No response
Media
No response
Additional information
No response
Confirmation Checklist
- I have checked the existing issues for duplicates.
- I agree to follow this project's Code of Conduct.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
issue: bugIssue reporting a bugIssue reporting a bugsource: core:adminSource is core/admin packageSource is core/admin packagestatus: pending reproductionWaiting for free time to reproduce the issue, or more informationWaiting for free time to reproduce the issue, or more information