From 70ed43839a7c8dbb498fb74f27fbaf3e5a8fca74 Mon Sep 17 00:00:00 2001 From: Tony Air Date: Fri, 8 Apr 2022 10:48:00 +0200 Subject: [PATCH] IMPR: Add submitted user forms to Dashboard --- src/Dashboard/Dashboard.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Dashboard/Dashboard.php b/src/Dashboard/Dashboard.php index c72995b..f8e40ed 100644 --- a/src/Dashboard/Dashboard.php +++ b/src/Dashboard/Dashboard.php @@ -6,6 +6,7 @@ use SilverStripe\Admin\LeftAndMain; use SilverStripe\Assets\File; use SilverStripe\CMS\Model\SiteTree; use SilverStripe\ORM\ArrayList; +use SilverStripe\UserForms\Model\Submission\SubmittedForm; class Dashboard extends LeftAndMain { @@ -15,7 +16,9 @@ class Dashboard extends LeftAndMain private static $url_priority = 30; private static $menu_icon_class = 'font-icon-dashboard'; - private static $managed_models = []; + private static $managed_models = [ + SubmittedForm::class, + ]; protected static function getRecentObjects($class, $limit = 10) {