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

[6.1] Fix page seeder #2482

Merged
merged 2 commits into from
May 26, 2023
Merged

Conversation

tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented May 26, 2023

Same as #2389 but for 6.1

Ruby 3.1 does not allow Date in yml by default anymore.
If you pass a public_on date to the page seeder,
Alchemy will create a public version (because of the
public_on= attribute writer). The before_create filter
kicks in too late, leading to public pages without a
draft version.

Tried to use different before filters in the page model,
but nothing worked. So I fixed the problem where it
happens in the page seeder.
@tvdeyen tvdeyen changed the title 6.1 fix page seeder [6.1] Fix page seeder May 26, 2023
@tvdeyen tvdeyen merged commit 21da4a7 into AlchemyCMS:6.1-stable May 26, 2023
@tvdeyen tvdeyen deleted the 6.1-fix-page-seeder branch May 26, 2023 06:47
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.

1 participant