Skip to content

Adding UID with attached field to existing Collection Type returns null #11665

@malgamves

Description

@malgamves

Bug report

Describe the bug

Whenever I add a UID with an attached field to an existing Collection Type and query that Collection Type, the UID returns null even though the field is automatically filled in due to the field it's attached to being filled in. This is because we don't trigger a save in the entry as we technically haven't made a change because it was automatic.. when i add a UID with no attached field and go to the entry view to add content to the UID with no attached field, the save button is visible and i can click it after which both UID show in response.

Steps to reproduce the behavior

  1. Create a Collection Type with a short text field
  2. Add some entries to the collection type you just created
  3. Go to the Content type builder and add a UID which is attached the short text field you made earlier
  4. Query endpoint corresponding to collection type
  5. See error

Expected behavior

The Save button should be clickable in entry view because of the UID with an attached field that was automatically populated or by default the save should be triggered when the UID is populated so null isn't returned

System

  • Node.js version: 14.16.0
  • NPM version: 7.24.1
  • Strapi version: 4.0.0-beta.13
  • Database: sqlite
  • Operating system: Windows 10

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue: bugIssue reporting a bugseverity: lowIf the issue only affects a very niche base of users and an easily implemented workaround can solvesource: core:content-managerSource is core/content-manager packagestalestale-before-2022status: 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