diff --git a/code/Report.php b/code/Report.php
index 1842a48a..bce53349 100644
--- a/code/Report.php
+++ b/code/Report.php
@@ -431,7 +431,7 @@ class Report extends ViewableData
if ($item instanceof CMSPreviewable) {
return sprintf(
'%s',
- Convert::raw2att($item->CMSEditLink()),
+ Convert::raw2att($item->getCMSEditLink()),
Convert::raw2att($value),
Convert::raw2xml($value)
);
diff --git a/code/SideReportView.php b/code/SideReportView.php
index e7d627b1..0c09a725 100644
--- a/code/SideReportView.php
+++ b/code/SideReportView.php
@@ -95,8 +95,8 @@ class SideReportView extends ViewableData
}
if (isset($info['link']) && $info['link']) {
- $link = ($info['link'] === true && $record->hasMethod('CMSEditLink'))
- ? $record->CMSEditLink()
+ $link = ($info['link'] === true && $record->hasMethod('getCMSEditLink'))
+ ? $record->getCMSEditLink()
: $info['link'];
return $prefix . "$val";
} else {
diff --git a/tests/ReportTest/FakeObject.php b/tests/ReportTest/FakeObject.php
index 9951b172..4448f77f 100644
--- a/tests/ReportTest/FakeObject.php
+++ b/tests/ReportTest/FakeObject.php
@@ -24,7 +24,7 @@ class FakeObject extends DataObject implements CMSPreviewable, TestOnly
return Controller::join_links('dummy-link', $this->ID);
}
- public function CMSEditLink()
+ public function getCMSEditLink(): ?string
{
return Controller::join_links('dummy-edit-link', $this->ID);
}