Skip to content

Virtual polymorphic relationship field in an array is not displayed in the admin #16316

@Xmaster6y

Description

@Xmaster6y

Describe the Bug

When a document has a virtual polymorphic field in an array (also virtual) the field value is not displayed in the admin while retrieved by the api.

Link to the code that reproduces this issue

https://github.com/Xmaster6y/bug-poly

Reproduction Steps

  1. Create a template and add permissions
  2. Create a page linked to the previously created template
  3. Observe the missing entity

Which area(s) are affected?

area: ui

Environment Info

Binaries:
  Node: 24.8.0
  npm: 11.11.0
  Yarn: 1.22.22
  pnpm: 10.17.0
Relevant Packages:
  payload: 3.83.0
  next: 16.2.3
  @payloadcms/db-sqlite: 3.83.0
  @payloadcms/drizzle: 3.83.0
  @payloadcms/graphql: 3.83.0
  @payloadcms/next/utilities: 3.83.0
  @payloadcms/richtext-lexical: 3.83.0
  @payloadcms/translations: 3.83.0
  @payloadcms/ui/shared: 3.83.0
  react: 19.2.4
  react-dom: 19.2.4
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.6.0: Mon Jul 14 11:29:54 PDT 2025; root:xnu-11417.140.69~1/RELEASE_ARM64_T8122
  Available memory (MB): 16384
  Available CPU cores: 8

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: uiRelated to the admin panel.status: needs-triagePossible bug which hasn't been reproduced yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions