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 missing blockable_id on revision preview causing blockable relati… #2484

Conversation

emanueljacob
Copy link
Contributor

Description

Fix preview mode when trying to preview a revision that contains a block that itself uses a blockable relation.

The fix is relatively simple: we just move the assignment of the models id to the new instance directly after creation but BEFORE hydration takes place. this way the hydration can make use of the models id and can set the blockable_id in the block relation

More information and detailed bug explanation including examples and references can be found in #2483

Related Issues

Fixes #2483
Related to #797

@ifox ifox merged commit 481afe8 into area17:3.x Feb 27, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants