Skip to content

fix: passes draft=true in fetch for relationships - #4784

Merged
PatrikKozak merged 4 commits into
mainfrom
fix/draft-relationships
Jan 12, 2024
Merged

PatrikKozak merged 4 commits into
mainfrom
fix/draft-relationships

Conversation

@PatrikKozak

Copy link
Copy Markdown
Contributor

Description

Fixes #2997

When fetching for a doc from a relationship field, if the doc is a draft and has no published versions - the relationship field dropdown would still find the doc but show Untitled - ID: 1234 even if the doc had a title.

This fix now fetches relations with draft=true in order to correctly display the appropriate data.

  • I have read and understand the CONTRIBUTING.md document in this repository.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • I have added tests that prove my fix is effective or that my feature works
  • Existing test suite passes locally with my changes

@PatrikKozak PatrikKozak changed the title fix: passes ?draft=true to fetch for relationships fix: passes draft=true in fetch for relationships Jan 11, 2024
Comment thread test/versions/e2e.spec.ts Resolved
@PatrikKozak
PatrikKozak merged commit 0a259d2 into main Jan 12, 2024
@PatrikKozak
PatrikKozak deleted the fix/draft-relationships branch January 12, 2024 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The relation field lookup doesn't tolerate the Drafts

2 participants