[BUGFIX] Scheduler does not run tasks from module
authorPhilipp Gampe <philipp.gampe@typo3.org>
Sun, 23 Sep 2012 13:49:03 +0000 (15:49 +0200)
committerHelmut Hummel <helmut.hummel@typo3.org>
Mon, 24 Sep 2012 20:38:06 +0000 (22:38 +0200)
The scheduler tries to read the wrong get variable.

Solution: Switch to the namespaced one.

Fixes: #41296
Releases: 6.0

Change-Id: I779873a6d1309d4a70c4e38d9c00687f8fef023f
Reviewed-on: http://review.typo3.org/14967
Reviewed-by: Wouter Wolters
Reviewed-by: Andy Grunwald
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
typo3/sysext/scheduler/Classes/Controller/SchedulerModuleController.php

index 8e8c74c..0e1a6c7 100644 (file)
@@ -63,7 +63,7 @@ class SchedulerModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClas
        protected $cshKey;
 
        /**
-        * @var         tx_scheduler    Local scheduler instance
+        * @var \TYPO3\CMS\Scheduler\Scheduler Local scheduler instance
         */
        protected $scheduler;
 
@@ -157,7 +157,7 @@ class SchedulerModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClas
                $content = '';
                $sectionTitle = '';
                // Get submitted data
-               $this->submittedData = \TYPO3\CMS\Core\Utility\GeneralUtility::_GPmerged('tx_scheduler');
+               $this->submittedData = \TYPO3\CMS\Core\Utility\GeneralUtility::_GPmerged('TYPO3\\CMS\\Scheduler\\Scheduler');
                $this->submittedData['uid'] = intval($this->submittedData['uid']);
                // If a save command was submitted, handle saving now
                if ($this->CMD == 'save') {
@@ -177,7 +177,7 @@ class SchedulerModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClas
                switch ((string) $this->MOD_SETTINGS['function']) {
                case 'scheduler':
                        // Scheduler's main screen
-                       $content .= $this->executeTasks();
+                       $this->executeTasks();
                        // Execute chosen action
                        switch ($this->CMD) {
                        case 'add':