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

[7.2-stable] Fallback to @page var if no Current.page is set #3020

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Sep 4, 2024

Backport

This will backport the following commits from main to 7.2-stable:

Questions ?

Please refer to the Backport tool documentation

With Alchemy 7.2 (#2701) we started to use `Alchemy::Current.page`
for rendering elements of current page. If one has a custom
controller to render Alchemy content with:

    render(template: "alchemy/pages/show")

it is now empty if `Alchemy::Current.page` is not set.

Someday we might deprecate the `@page` instance variable,
but until then we need to fall back to it.

(cherry picked from commit 26072ab)
@tvdeyen tvdeyen requested a review from a team as a code owner September 4, 2024 09:17
Copy link

codecov bot commented Sep 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.02%. Comparing base (afc227d) to head (8ec7b62).
Report is 6 commits behind head on 7.2-stable.

Additional details and impacted files
@@             Coverage Diff             @@
##           7.2-stable    #3020   +/-   ##
===========================================
  Coverage       96.02%   96.02%           
===========================================
  Files             233      233           
  Lines            6316     6316           
===========================================
  Hits             6065     6065           
  Misses            251      251           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tvdeyen tvdeyen merged commit eb0011b into 7.2-stable Sep 4, 2024
32 checks passed
@tvdeyen tvdeyen deleted the backport/7.2-stable/pr-3011 branch September 4, 2024 09:42
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.

2 participants