From f9a904f3efd464e63ec4e2f02da90d578ffc5f69 Mon Sep 17 00:00:00 2001
From: Oliver Bartsch <bo@cedev.de>
Date: Mon, 20 Apr 2020 21:07:02 +0200
Subject: [PATCH] [BUGFIX] Fix dashboard widgetItemsProcFunc for ACL

Remove wrong fourth parameter from the items array as
this broke the whole column.

Resolves: #91152
Releases: master
Change-Id: I07f5a1d3fd3d25fadba88b54581ccbfc52184fb6
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/64266
Tested-by: Josef Glatz <josefglatz@gmail.com>
Tested-by: Oliver Hader <oliver.hader@typo3.org>
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Richard Haeser <richard@maxserv.com>
Reviewed-by: Josef Glatz <josefglatz@gmail.com>
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Reviewed-by: Richard Haeser <richard@maxserv.com>
---
 typo3/sysext/dashboard/Classes/WidgetRegistry.php        | 3 +--
 typo3/sysext/dashboard/Tests/Unit/WidgetRegistryTest.php | 6 ++----
 2 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/typo3/sysext/dashboard/Classes/WidgetRegistry.php b/typo3/sysext/dashboard/Classes/WidgetRegistry.php
index 915b33d02d48..2ab288490040 100644
--- a/typo3/sysext/dashboard/Classes/WidgetRegistry.php
+++ b/typo3/sysext/dashboard/Classes/WidgetRegistry.php
@@ -104,8 +104,7 @@ class WidgetRegistry implements SingletonInterface
             $parameters['items'][] = [
                 $widget->getTitle(),
                 $widget->getIdentifier(),
-                $widget->getIconIdentifier(),
-                $widget->getDescription(),
+                $widget->getIconIdentifier()
             ];
         }
     }
diff --git a/typo3/sysext/dashboard/Tests/Unit/WidgetRegistryTest.php b/typo3/sysext/dashboard/Tests/Unit/WidgetRegistryTest.php
index 72b093e24508..04c84cc536e1 100644
--- a/typo3/sysext/dashboard/Tests/Unit/WidgetRegistryTest.php
+++ b/typo3/sysext/dashboard/Tests/Unit/WidgetRegistryTest.php
@@ -188,14 +188,12 @@ class WidgetRegistryTest extends UnitTestCase
                     [
                         'LLL:EXT:dashboard/Resources/Private/Language/Widgets.xlf:T3OrgNews.title',
                         't3orgnews',
-                        'content-widget-rss',
-                        'LLL:EXT:dashboard/Resources/Private/Language/Widgets.xlf:T3OrgNews.description',
+                        'content-widget-rss'
                     ],
                     [
                         'LLL:EXT:dashboard/Resources/Private/Language/Widgets.xlf:2ndWidget.title',
                         '2ndWidget',
-                        'content-widget-2nd',
-                        'LLL:EXT:dashboard/Resources/Private/Language/Widgets.xlf:2ndWidget.description',
+                        'content-widget-2nd'
                     ],
                 ]
             ],
-- 
GitLab