From ba77206bfeb22eda48f56b99cc12b7b91447f02c Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Mon, 9 Dec 2024 12:53:09 +1300 Subject: [PATCH] ENH Update code to avoid calling deprecated code --- src/Controllers/CMSPageHistoryViewerController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controllers/CMSPageHistoryViewerController.php b/src/Controllers/CMSPageHistoryViewerController.php index ca04f15..17b04e7 100644 --- a/src/Controllers/CMSPageHistoryViewerController.php +++ b/src/Controllers/CMSPageHistoryViewerController.php @@ -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');