[BUGFIX] Scheduler shows "add" button again after toggling disable 17/36317/2
authorMathias Schreiber <mathias.schreiber@wmdb.de>
Wed, 28 Jan 2015 09:52:30 +0000 (10:52 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Wed, 28 Jan 2015 22:34:02 +0000 (23:34 +0100)
A minor fix is needed to keep the "Add" icon on top

Resolves: #25631
Releases: master
Change-Id: I71514d0a4c0920149491bd550defd1f4bd49f935
Reviewed-on: http://review.typo3.org/36317
Reviewed-by: Andreas Fernandez <andreas.fernandez@aspedia.de>
Tested-by: Andreas Fernandez <andreas.fernandez@aspedia.de>
Reviewed-by: Stephan GroƟberndt <stephan@grossberndt.de>
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Tested-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/scheduler/Classes/Controller/SchedulerModuleController.php

index 318e272..fcaca74 100644 (file)
@@ -1443,7 +1443,7 @@ class SchedulerModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClas
                        'reload' => '',
                        'shortcut' => $this->getShortcutButton()
                );
-               if (empty($this->CMD) || $this->CMD === 'list' || $this->CMD === 'delete') {
+               if (empty($this->CMD) || $this->CMD === 'list' || $this->CMD === 'delete' || $this->CMD === 'toggleHidden') {
                        $buttons['reload'] = '<a href="' . $GLOBALS['MCONF']['_'] . '" title="' . $this->getLanguageService()->sL('LLL:EXT:lang/locallang_core.xlf:labels.reload', TRUE) . '">' . IconUtility::getSpriteIcon('actions-system-refresh') . '</a>';
                        if ($this->MOD_SETTINGS['function'] === 'scheduler' && count($this->getRegisteredClasses())) {
                                $link = $GLOBALS['MCONF']['_'] . '&CMD=add';