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

API Update code to reflect changes to LeftAndMain #618

Merged

Conversation

GuySartorelli
Copy link
Member

Comment on lines -54 to -56
SilverStripe\CMS\Controllers\CMSPagesController:
extensions:
- SilverStripe\Subsites\Extensions\SubsiteMenuExtension
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is already included on CMSMain above.

Comment on lines -285 to -291
// Clear current page when subsite changes (or is set for the first time)
if ($state->getSubsiteIdWasChanged()) {
// sessionNamespace() is protected - see for info
$override = $this->owner->config()->get('session_namespace');
$sessionNamespace = $override ? $override : get_class($this->owner);
$session->clear($sessionNamespace . '.currentPage');
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Storing the current record ID in the session was deprecated, and is being removed in silverstripe/silverstripe-admin#1867

@GuySartorelli GuySartorelli force-pushed the pulls/4.0/generic-cmsmain branch from a46ca42 to 07f30f6 Compare December 11, 2024 02:01
@GuySartorelli GuySartorelli marked this pull request as ready for review December 11, 2024 23:13
@emteknetnz emteknetnz merged commit 41bf02c into silverstripe:4.0 Dec 12, 2024
7 of 12 checks passed
@emteknetnz emteknetnz deleted the pulls/4.0/generic-cmsmain branch December 12, 2024 04:28
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