[BUGFIX] Scheduler throws fatal error while saving an Extbase Task
authorAlexander Schnitzler <alex.schnitzler@typovision.de>
Tue, 23 Apr 2013 18:55:42 +0000 (20:55 +0200)
committerAlexander Schnitzler <typo3@alexanderschnitzler.de>
Tue, 23 Apr 2013 19:02:29 +0000 (21:02 +0200)
While improving the code coverage, some source code
had to be adjusted to be mockable. This unfortunetly
braught a regression into the Task class.

Releases: 6.1
Resolves: #47352
Change-Id: I7da54e882d7880c8a816a0b795fa55e53a542885
Reviewed-on: https://review.typo3.org/20115
Reviewed-by: Alexander Schnitzler
Tested-by: Alexander Schnitzler
typo3/sysext/extbase/Classes/Scheduler/Task.php

index 589d6bd..5b6c26c 100644 (file)
@@ -66,6 +66,7 @@ class Task extends \TYPO3\CMS\Scheduler\Task\AbstractTask {
         * Intanciates the Object Manager
         */
        public function __construct() {
+               parent::__construct();
                $this->objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
                $this->commandManager = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Mvc\\Cli\\CommandManager');
                $this->taskExecutor = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Scheduler\\TaskExecutor');