diff --git a/code/controllers/ReportAdmin.php b/code/controllers/ReportAdmin.php index f1cb7492..0bee88a2 100644 --- a/code/controllers/ReportAdmin.php +++ b/code/controllers/ReportAdmin.php @@ -128,6 +128,13 @@ class ReportAdmin extends LeftAndMain implements PermissionProvider { ); } + /** + * Reports don't need an editor toolbar. This empty method is necessary, otherwise the report page thinks it is + * a SiteTree page and returns unnecessary controls in a cms-editor-dialogs div + */ + public function EditorToolbar() { + } + public function getEditForm($id = null, $fields = null) { $fields = new FieldList();