Skip to content

Entries are duplicated/counted multiple times in the homepage dashboard depending on how many roles a user has #25779

@camiblanch

Description

@camiblanch

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

  1. Start as a user with 1 role
  2. In my case I have blog posts so I create a blog post called "Apples"
  3. 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"
  4. Give my user 2 more roles
  5. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue: bugIssue reporting a bugsource: core:adminSource is core/admin packagestatus: pending reproductionWaiting for free time to reproduce the issue, or more information

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions