[BUGFIX] Fix Task examples in scheduler
authorWouter Wolters <typo3@wouterwolters.nl>
Fri, 30 Nov 2012 19:45:49 +0000 (20:45 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 30 Nov 2012 20:06:48 +0000 (21:06 +0100)
Fix the Task examples in scheduler. The values cannot be saved
due the namespace change

Change-Id: I091c7982fb08add4c4640d2da32c80f38fbad384
Fixes: #43468
Releases: 6.1, 6.0
Reviewed-on: http://review.typo3.org/16899
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/scheduler/Classes/Example/SleepTaskAdditionalFieldProvider.php
typo3/sysext/scheduler/Classes/Example/TestTaskAdditionalFieldProvider.php

index a66d126..e767831 100644 (file)
@@ -55,7 +55,7 @@ class SleepTaskAdditionalFieldProvider implements \TYPO3\CMS\Scheduler\Additiona
                }
                // Write the code for the field
                $fieldID = 'task_sleepTime';
                }
                // Write the code for the field
                $fieldID = 'task_sleepTime';
-               $fieldCode = '<input type="text" name="TYPO3\\CMS\\Scheduler\\Scheduler[sleepTime]" id="' . $fieldID . '" value="' . $taskInfo['sleepTime'] . '" size="10" />';
+               $fieldCode = '<input type="text" name="tx_scheduler[sleepTime]" id="' . $fieldID . '" value="' . $taskInfo['sleepTime'] . '" size="10" />';
                $additionalFields = array();
                $additionalFields[$fieldID] = array(
                        'code' => $fieldCode,
                $additionalFields = array();
                $additionalFields[$fieldID] = array(
                        'code' => $fieldCode,
index a6b8969..e43f382 100644 (file)
@@ -55,7 +55,7 @@ class TestTaskAdditionalFieldProvider implements \TYPO3\CMS\Scheduler\Additional
                }
                // Write the code for the field
                $fieldID = 'task_email';
                }
                // Write the code for the field
                $fieldID = 'task_email';
-               $fieldCode = '<input type="text" name="TYPO3\\CMS\\Scheduler\\Scheduler[email]" id="' . $fieldID . '" value="' . htmlspecialchars($taskInfo['email']) . '" size="30" />';
+               $fieldCode = '<input type="text" name="tx_scheduler[email]" id="' . $fieldID . '" value="' . htmlspecialchars($taskInfo['email']) . '" size="30" />';
                $additionalFields = array();
                $additionalFields[$fieldID] = array(
                        'code' => $fieldCode,
                $additionalFields = array();
                $additionalFields[$fieldID] = array(
                        'code' => $fieldCode,