[BUGFIX] DB Check: Function menu and shortcuts now working again 71/44271/2
authorMichael Oehlhof <typo3@oehlhof.de>
Sun, 25 Oct 2015 21:08:00 +0000 (22:08 +0100)
committerMorton Jonuschat <m.jonuschat@mojocode.de>
Sun, 25 Oct 2015 21:31:42 +0000 (22:31 +0100)
The function menu does show the active module.
The shortcut selects the correct submodule.

Resolves: #71010
Releases: master
Change-Id: I1d358ad75bf44730fdc89dd193fdf03afe42a5df
Reviewed-on: https://review.typo3.org/44271
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
typo3/sysext/lowlevel/Classes/View/DatabaseIntegrityView.php

index b1ef936..23c073c 100644 (file)
@@ -217,7 +217,7 @@ class DatabaseIntegrityView extends BaseScriptClass
         // Shortcut
         $shortCutButton = $buttonBar->makeShortcutButton()
             ->setModuleName($this->moduleName)
-            ->setGetVariables(['function','search','search_query_makeQuery']);
+            ->setSetVariables(['function','search','search_query_makeQuery']);
         $buttonBar->addButton($shortCutButton, ButtonBar::BUTTON_POSITION_RIGHT, 2);
 
         $this->getModuleMenu();
@@ -277,7 +277,7 @@ class DatabaseIntegrityView extends BaseScriptClass
                     )
                 )
                 ->setTitle($title);
-            if ($controller === (int)$this->MOD_SETTINGS['function']) {
+            if ($controller === $this->MOD_SETTINGS['function']) {
                 $item->setActive(true);
             }
             $menu->addMenuItem($item);