Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from
Jan 12, 2024

Conversation

PatrikKozak
Copy link
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
@PatrikKozak PatrikKozak merged commit 0a259d2 into main Jan 12, 2024
30 checks passed
@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