[BUGFIX] Error in configuration of scheduler task
authorPhilipp Gampe <philipp.gampe@typo3.org>
Thu, 29 Nov 2012 23:03:43 +0000 (00:03 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 30 Nov 2012 17:01:00 +0000 (18:01 +0100)
the saltedpassword conversion task has been adopted to the namespace
changes. However the HTTP GET variable must not be namespaced.

Change the GET variable to tx_scheduler again.

Fixes: #40706
Releases: 6.0, 6.1

Change-Id: Ic646bd16600d1eb07e78677dd60dd61eb87f6c88
Reviewed-on: http://review.typo3.org/16876
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
Reviewed-by: Mario Rimann
Reviewed-by: Mattias Nilsson
Tested-by: Mattias Nilsson
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/saltedpasswords/Classes/Task/BulkUpdateFieldProvider.php

index cacc490..7bdbe1f 100644 (file)
@@ -71,7 +71,7 @@ class BulkUpdateFieldProvider implements \TYPO3\CMS\Scheduler\AdditionalFieldPro
                        }
                }
                // Configuration for canDeactivateSelf
-               $fieldName = 'TYPO3\\CMS\\Scheduler\\Scheduler[scheduler_saltedpasswordsBulkUpdateCanDeactivateSelf]';
+               $fieldName = 'tx_scheduler[scheduler_saltedpasswordsBulkUpdateCanDeactivateSelf]';
                $fieldId = 'task_saltedpasswordsBulkUpdateCanDeactivateSelf';
                $fieldValue = 'IsChecked';
                $fieldChecked = (bool) $taskInfo['scheduler_saltedpasswordsBulkUpdateCanDeactivateSelf'];
@@ -83,7 +83,7 @@ class BulkUpdateFieldProvider implements \TYPO3\CMS\Scheduler\AdditionalFieldPro
                        'cshLabel' => $fieldId
                );
                // Configuration for numberOfRecords
-               $fieldName = 'TYPO3\\CMS\\Scheduler\\Scheduler[scheduler_saltedpasswordsBulkUpdateNumberOfRecords]';
+               $fieldName = 'tx_scheduler[scheduler_saltedpasswordsBulkUpdateNumberOfRecords]';
                $fieldId = 'task_saltedpasswordsBulkUpdateNumberOfRecords';
                $fieldValue = intval($taskInfo['scheduler_saltedpasswordsBulkUpdateNumberOfRecords']);
                $fieldHtml = '<input type="text" name="' . $fieldName . '" id="' . $fieldId . '" value="' . htmlspecialchars($fieldValue) . '" />';
@@ -118,7 +118,7 @@ class BulkUpdateFieldProvider implements \TYPO3\CMS\Scheduler\AdditionalFieldPro
         * Saves given values in task object
         *
         * @param array $submittedData Contains data submitted by the user
-        * @param tx_scheduler_Task|tx_saltedpasswords_Tasks_BulkUpdate $task Reference to the current task object
+        * @param \TYPO3\CMS\Scheduler\Task\AbstractTask|\TYPO3\CMS\Saltedpasswords\Task\BulkUpdateTask $task Reference to the current task object
         * @return void
         */
        public function saveAdditionalFields(array $submittedData, \TYPO3\CMS\Scheduler\Task\AbstractTask $task) {