Skip to content

User: Display field for role not working (always set to ID) #17561

@biancajs

Description

@biancajs
  • Node.js version: v16.20.0
  • NPM version: 8.19.4
  • Strapi version: v4.12.1
  • Database: mysql
  • Operating system: macOS
  • Is your project Javascript or Typescript: js

Describe the bug

There might be a minor bug: when creating a new user the related role fields only shows the IDs as a dropdown list (the display field is explicitly set to "name"). That's a bit confusing for content editors.

Steps to reproduce the behavior

  1. Go to: Content Manger -> User
  2. Click on: Create new Entry (or open an existing one)
  3. Instead of the name ("authenticated", "public", etc.) the ID is referenced
  4. (Check if: Content Type Builder -> User -> Configure the view -> Role: is set to "name")

Expected behavior

Instead of the ID the name of the role should be shown ("authenticated" etc.)

Screenshots

user-role

role-view

Code snippets

If applicable, add code samples to help explain your problem.

Additional context

Add any other context about the problem here.

Metadata

Metadata

Labels

flag: EEIssues correlates to internal EE ticketissue: bugIssue reporting a bugseverity: criticalIf the issue has a security impact or breaks core usage of the productsource: plugin:users-permissionsSource is plugin/users-permissions packagestatus: confirmedConfirmed by a Strapi Team member or multiple community members

Type

No type

Projects

Status

Fixed/Shipped

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions