Skip to content

Commit

Permalink
API Update code to reflect changes in silverstripe/cms
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Dec 10, 2024
1 parent c5df3e2 commit 609cbb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/Model/Recipient/EmailRecipient.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ protected function getFormParent()
// LeftAndMain::sessionNamespace is protected.
$sessionNamespace = $this->config()->get('session_namespace') ?: CMSMain::class;

$formID = Controller::curr()->getRequest()->getSession()->get($sessionNamespace . '.currentPage');
$formID = Controller::curr()->getRequest()->getSession()->get($sessionNamespace . '.currentRecord');
if ($formID) {
return UserDefinedForm::get()->byID($formID);
}
Expand Down
2 changes: 1 addition & 1 deletion code/Model/UserDefinedForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class UserDefinedForm extends Page
* @var string
* @deprecated 6.4.0 Will be renamed to cms_icon_class
*/
private static $icon_class = 'font-icon-p-list';
private static $cms_icon_class = 'font-icon-p-list';

private static $class_description = 'Adds a customizable form.';

Expand Down

0 comments on commit 609cbb3

Please sign in to comment.