From 2f6ba30578c2f45d2d4ab9c168906e3e6a15e624 Mon Sep 17 00:00:00 2001
From: Andreas Fernandez <a.fernandez@scripting-base.de>
Date: Sun, 19 Apr 2020 15:56:18 +0200
Subject: [PATCH] [BUGFIX] Don't set default start module in UC explicitly

The backend already provides the possibility for a backend user to use
the first available module as "start module". However, if the UC of
backend user is empty, its start module is set to "help_AboutAbout"
explicitly, which contradicts the mentioned feature. Additionally,
EXT:about is an optional dependency which may break the backend at this
point.

Because of the listed reasons, explicitly setting "help_AboutAbout" has
been removed as well as the override by EXT:dashboard.

Resolves: #91127
Releases: master
Change-Id: I04fb79f8b59f7e8a07736ffc0d328979075f09a4
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/64247
Reviewed-by: Oliver Bartsch <bo@cedev.de>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Josef Glatz <josefglatz@gmail.com>
Reviewed-by: Richard Haeser <richard@maxserv.com>
Tested-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Josef Glatz <josefglatz@gmail.com>
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Richard Haeser <richard@maxserv.com>
---
 .../core/Classes/Authentication/BackendUserAuthentication.php  | 1 -
 typo3/sysext/dashboard/ext_localconf.php                       | 3 ---
 2 files changed, 4 deletions(-)

diff --git a/typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php b/typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php
index da57b1a542a2..c3bd54be5762 100644
--- a/typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php
+++ b/typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php
@@ -290,7 +290,6 @@ class BackendUserAuthentication extends AbstractUserAuthentication
         // user-data for the modules
         'thumbnailsByDefault' => 1,
         'emailMeAtLogin' => 0,
-        'startModule' => 'help_AboutAbout',
         'titleLen' => 50,
         'edit_RTE' => '1',
         'edit_docModuleUpload' => '1',
diff --git a/typo3/sysext/dashboard/ext_localconf.php b/typo3/sysext/dashboard/ext_localconf.php
index 494c64343068..59152f8f7e2e 100644
--- a/typo3/sysext/dashboard/ext_localconf.php
+++ b/typo3/sysext/dashboard/ext_localconf.php
@@ -13,6 +13,3 @@ if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations
         ],
     ];
 }
-
-// Set starting module to dashboard if users didn't change it
-$GLOBALS['TYPO3_CONF_VARS']['BE']['defaultUC']['startModule'] = 'dashboard';
-- 
GitLab