[BUGFIX] Update topbar when switching BE language 21/60321/2
authorBenni Mack <benni@typo3.org>
Sat, 23 Mar 2019 21:53:54 +0000 (22:53 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Sun, 24 Mar 2019 10:46:09 +0000 (11:46 +0100)
If a user switched his language settings in his preference,
the top bar is now also refreshed reflecting the language
change.

Resolves: #18117
Releases: master, 9.5
Change-Id: Ifdcd08c65f12ce1083521e93205964a2f77ca811
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/60321
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/setup/Classes/Controller/SetupModuleController.php

index 86de42a..e3c3998 100644 (file)
@@ -343,6 +343,9 @@ class SetupModuleController
                 if (top && top.TYPO3.ModuleMenu.App) {
                     top.TYPO3.ModuleMenu.App.refreshMenu();
                 }
+                if (top && top.TYPO3.Backend.Topbar) {
+                    top.TYPO3.Backend.Topbar.refresh();
+                }
             ');
         }
         if ($this->pagetreeNeedsRefresh) {