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 in silverstripe/cms #1356

Merged

Conversation

GuySartorelli
Copy link
Member

@GuySartorelli GuySartorelli force-pushed the pulls/7.0/generic-cmsmain branch from 609cbb3 to 48bdee9 Compare December 11, 2024 00:49
Comment on lines -233 to -240
// Revert to checking for a form from the session
// LeftAndMain::sessionNamespace is protected.
$sessionNamespace = $this->config()->get('session_namespace') ?: CMSMain::class;

$formID = Controller::curr()->getRequest()->getSession()->get($sessionNamespace . '.currentPage');
if ($formID) {
return UserDefinedForm::get()->byID($formID);
}
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

From what I can tell, the relation is always set anyway so we shouldn't ever get to this.

@GuySartorelli GuySartorelli marked this pull request as ready for review December 11, 2024 23:13
@emteknetnz emteknetnz merged commit 2efc5ea into silverstripe:7.0 Dec 12, 2024
5 of 13 checks passed
@emteknetnz emteknetnz deleted the pulls/7.0/generic-cmsmain branch December 12, 2024 04:29
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