[BUGFIX] Ensure module menu can be expanded again 22/52322/2
authorDaniel Goerz <ervaude@gmail.com>
Sun, 2 Apr 2017 22:57:44 +0000 (00:57 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 3 Apr 2017 11:29:34 +0000 (13:29 +0200)
Change-Id: I0521b84c87ccbdf31122c7afd5ab2541c9e7b182
Resolves: #80642
Releases: master
Reviewed-on: https://review.typo3.org/52322
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Thomas Hohn <thomas@hohn.dk>
Tested-by: Thomas Hohn <thomas@hohn.dk>
Reviewed-by: Joerg Boesche <typo3@joergboesche.de>
Tested-by: Riccardo De Contardi <erredeco@gmail.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Resources/Public/JavaScript/ModuleMenu.js

index a8ebed5..b4efb16 100644 (file)
@@ -51,7 +51,7 @@ require(
                                // check if module menu should be collapsed or not
                                var state = Storage.Persistent.get('BackendComponents.States.typo3-module-menu');
                                if (state && state.collapsed) {
-                                       TYPO3.ModuleMenu.App.toggleMenu(state.collapsed);
+                                       TYPO3.ModuleMenu.App.toggleMenu(state.collapsed === 'true');
                                }
 
                                // check if there are collapsed items in the users' configuration
@@ -122,7 +122,7 @@ require(
 
                        },
                        /**
-                        * @param {bool} collapse
+                        * @param {Boolean} collapse
                         */
                        toggleMenu: function (collapse) {
                                TYPO3.Backend.NavigationContainer.cleanup();