[BUGFIX] Follow-up: Description-field for scheduler-jobs 30/24630/2
authorPhilipp Gampe <philipp.gampe@typo3.org>
Sat, 12 Oct 2013 13:22:49 +0000 (15:22 +0200)
committerPhilipp Gampe <philipp.gampe@typo3.org>
Sat, 12 Oct 2013 13:26:16 +0000 (15:26 +0200)
Add the new field to the list of fields to be save during task
creation.

Resolves: #52696
Releases: 6.2
Change-Id: I4c281535a22318a6a742b25c6196a511bc620e24
Reviewed-on: https://review.typo3.org/24630
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
typo3/sysext/scheduler/Classes/Scheduler.php

index 2228248..59abb63 100644 (file)
@@ -69,6 +69,7 @@ class Scheduler implements \TYPO3\CMS\Core\SingletonInterface {
                        $fields = array(
                                'crdate' => $GLOBALS['EXEC_TIME'],
                                'disable' => $task->isDisabled(),
+                               'description' => $task->getDescription(),
                                'serialized_task_object' => 'RESERVED'
                        );
                        $result = $GLOBALS['TYPO3_DB']->exec_INSERTquery('tx_scheduler_task', $fields);