Skip to content

Commit

Permalink
Merge pull request #12 from webcoast-dk/bugfix/scheduler-task-loosing…
Browse files Browse the repository at this point in the history
…-items-per-run

[BUGFIX] `ProcessTask` loosing value of `$numberOfItemsPerRun`
  • Loading branch information
thommyhh authored May 22, 2021
2 parents 6161db8 + b1bd502 commit 7e0d8ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Classes/Scheduler/ProcessTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

class ProcessTask extends AbstractBaseTask implements ProgressProviderInterface
{
public $numberOfItemsPerRun = 100;

/**
* This is the main method that is called when a task is executed
Expand Down
2 changes: 1 addition & 1 deletion Classes/Scheduler/ProcessTaskAdditionalFieldProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function getAdditionalFields(array &$taskInfo, $task, \TYPO3\CMS\Schedule
}

$additionalFields[$fieldId] = [
'code' => '<input type="text" class="form-control" name="' . $fieldName . '" id="' . $fieldId . '" size="10" value="' . $taskInfo[$fieldId] . '"" />',
'code' => '<input type="text" class="form-control" name="' . $fieldName . '" id="' . $fieldId . '" size="10" value="' . $task->numberOfItemsPerRun . '"" />',
'label' => 'LLL:EXT:versatile_crawler/Resources/Private/Language/locallang_backend.xlf:scheduler.processTask.numberOfItemsPerRun'
];

Expand Down

0 comments on commit 7e0d8ab

Please sign in to comment.