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

Missing context key entry_id in live preview #3

Closed
simonerd opened this issue May 23, 2023 · 1 comment
Closed

Missing context key entry_id in live preview #3

simonerd opened this issue May 23, 2023 · 1 comment

Comments

@simonerd
Copy link
Member

Within the tag we're looking for the entry id within the tag context (see here):

if (! $this->entry = $this->context->get('entry_id')->augmentable()) {
    return null;
}

That seems to work perfectly fine in the frontend – however, when using the live preview, the entry_id key can not be found within the context. You can find however a key id, which seems to contain the same information. Changing that key should fix this.

Tested in both 3.4 and 4.1, in an existing project and in a fresh install. I don't know if that bug has always been there and we haven't noticed that before, or if any changes caused that problem.

@juliawarnke
Copy link
Member

Fix is included in the the latest release v0.3.2-beta.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants