Skip to content

Commit

Permalink
API Update code to reflect changes to LeftAndMain
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Oct 17, 2024
1 parent 46fbfe4 commit 7e44734
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Controllers/CMSPageHistoryViewerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use SilverStripe\CMS\Controllers\CMSMain;
use SilverStripe\Forms\FieldList;
use SilverStripe\Forms\Form;
use SilverStripe\Forms\HiddenField;
use SilverStripe\VersionedAdmin\Forms\HistoryViewerField;

Expand All @@ -27,9 +28,9 @@ class CMSPageHistoryViewerController extends CMSMain

private static $required_permission_codes = 'CMS_ACCESS_CMSMain';

public function getEditForm($id = null, $fields = null)
public function getEditForm($id = null, $fields = null): Form
{
$record = $this->getRecord($id ?: $this->currentPageID());
$record = $this->getRecord($id ?: $this->currentRecordID());

$form = parent::getEditForm($id);
$form->addExtraClass('history-viewer__form');
Expand Down

0 comments on commit 7e44734

Please sign in to comment.