-
Notifications
You must be signed in to change notification settings - Fork 106
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
API Update code to reflect changes to LeftAndMain #618
Conversation
SilverStripe\CMS\Controllers\CMSPagesController: | ||
extensions: | ||
- SilverStripe\Subsites\Extensions\SubsiteMenuExtension |
There was a problem hiding this comment.
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.
7457a98
to
a46ca42
Compare
// 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'); | ||
} |
There was a problem hiding this comment.
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
a46ca42
to
07f30f6
Compare
Replaces #604
Reflects changes in silverstripe/silverstripe-admin#1837
Issue
SiteTree
inCMSMain
silverstripe-cms#2947