[BUGFIX] Tasks Center section menu is hardcoded 47/34947/9
authorPhilipp Gampe <philipp.gampe@typo3.org>
Tue, 2 Dec 2014 18:43:31 +0000 (19:43 +0100)
committerMarkus Klein <markus.klein@typo3.org>
Sun, 21 Jun 2015 21:51:54 +0000 (23:51 +0200)
commit7fdf1f94f3dece848b6438c53da5c10ed8ab0dc5
tree45a9ce5b469b14d2646dae04a0e92ba90ee4406e
parentb46143f6384d278693952a8f8893bc9d244d7ff2
[BUGFIX] Tasks Center section menu is hardcoded

Since the refactoring of the tasks center in 4.5, the section menu is
hardcoded to information and tasks and cannot be changed.

This is because the menu items are collected inside the array key 'mode'
instead of 'function'.
Because 'function' is hardcoded in the logic of BaseScriptClass, copy
the four lines from BaseScriptClass instead of calling
parent:menu_config() in the TaskModuleController.

Additionally, 'Tasks' is hardcoded as a label. Replace it with a
localized value.

Note: 'function' is preserved for backward compatibility and is already
in use for the main tasks logic.

Use page.mod.user_task.menu.mode.information = 0 to blind an individual
item, e.g. information.

Some further code cleanups are included.

Resolves: #63529
Releases: master
Change-Id: Ic2666dde7e794689011d8bac4996cda4216988c8
Reviewed-on: http://review.typo3.org/34947
Reviewed-by: Benjamin Mack <benni@typo3.org>
Tested-by: Benjamin Mack <benni@typo3.org>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/taskcenter/Classes/Controller/TaskModuleController.php
typo3/sysext/taskcenter/locallang.xlf