[BUGFIX] Show "Add task" after stopping a running task 13/37113/3
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Mon, 23 Feb 2015 14:01:23 +0000 (15:01 +0100)
committerNicole Cordes <typo3@cordes.co>
Tue, 24 Feb 2015 20:26:22 +0000 (21:26 +0100)
Check if CMD is "stop" to make "Add task" visible.

Resolves: #65235
Releases: master, 6.2
Change-Id: Ia5b87f6105e14e224e8db0541d6fe36a021d8ba3
Reviewed-on: http://review.typo3.org/37113
Reviewed-by: Frederic Gaus <gaus@flagbit.de>
Tested-by: Frederic Gaus <gaus@flagbit.de>
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Tested-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
typo3/sysext/scheduler/Classes/Controller/SchedulerModuleController.php

index c5b785d..c6ec3c7 100644 (file)
@@ -1453,7 +1453,7 @@ class SchedulerModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClas
                        'reload' => '',
                        'shortcut' => $this->getShortcutButton()
                );
-               if (empty($this->CMD) || $this->CMD === 'list' || $this->CMD === 'delete' || $this->CMD === 'toggleHidden') {
+               if (empty($this->CMD) || $this->CMD === 'list' || $this->CMD === 'delete' || $this->CMD === 'stop' || $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';