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

Allow Page::getSiteHomePageID to use default site (fixes upgrade from 5.7) #7912

Merged
merged 2 commits into from Jun 24, 2019

Conversation

deek87
Copy link
Contributor

@deek87 deek87 commented Jun 22, 2019

This PR allows Page::getSiteHomePageID to use the default site and return its home page id.

Currently when upgrading from 5.7 the migrations will fail as it tries to get the locale home page id as they don't exist when trying to install the new version 8 Pages. They are installed after, since getSiteHomePageID should generally return something, its best to return the default site HomePageID rather than HOME_CID/1

If local fails (fixing issue with upgrades from 5.7)
@aembler aembler merged commit 716374c into concretecms:develop Jun 24, 2019
acohin pushed a commit to acohin/concrete5 that referenced this pull request Feb 9, 2020
Allow Page::getSiteHomePageID to use default site (fixes upgrade from 5.7)
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.

None yet

2 participants