Skip to content

Commit

Permalink
ENH Update code to avoid calling deprecated code (#377)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Dec 10, 2024
1 parent 6cc383b commit e797325
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controllers/CMSPageHistoryViewerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class CMSPageHistoryViewerController extends CMSMain

public function getEditForm($id = null, $fields = null)
{
$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 e797325

Please sign in to comment.