diff --git a/code/controllers/ReportAdmin.php b/code/controllers/ReportAdmin.php index 1594eb5e..2d462f7a 100644 --- a/code/controllers/ReportAdmin.php +++ b/code/controllers/ReportAdmin.php @@ -108,8 +108,8 @@ class ReportAdmin extends LeftAndMain implements PermissionProvider { * Returns the Breadcrumbs for the ReportAdmin * @return ArrayList */ - public function Breadcrumbs() { - $items = parent::Breadcrumbs(); + public function Breadcrumbs($unlinked = false) { + $items = parent::Breadcrumbs($unlinked); // The root element should explicitly point to the root node. // Uses session state for current record otherwise. diff --git a/code/widgets/WidgetAreaEditor.php b/code/widgets/WidgetAreaEditor.php index 8c99508c..9c5dcd11 100644 --- a/code/widgets/WidgetAreaEditor.php +++ b/code/widgets/WidgetAreaEditor.php @@ -61,7 +61,7 @@ class WidgetAreaEditor extends FormField { return $this->form->getRecord()->getComponent($relationName)->ID; } - function saveInto(DataObject $record) { + function saveInto(DataObjectInterface $record) { $name = $this->name; $idName = $name . "ID"; @@ -139,4 +139,4 @@ class WidgetAreaEditor extends FormField { } } } -} \ No newline at end of file +}