Apen / additional_scheduler

Useful tasks in the scheduler module : full backup, send query result in mail, exec SH script with reports...
Other
8 stars 9 forks source link

BaseAdditionalFieldProvider::initFields() is called with null argument by sysext/scheduler when adding a new task #24

Closed nalmar closed 1 year ago

nalmar commented 1 year ago

Adding a new task ( it works when modifying an existing one ) : Argument 2 passed to Sng\Additionalscheduler\BaseAdditionalFieldProvider::initFields() must be an instance of TYPO3\CMS\Scheduler\Task\AbstractTask, null given, called in /var/www/public/typo3conf/ext/additional_scheduler/Classes/BaseAdditionalFieldProvider.php on line 105

since 1.5.7 : protected function initFields(array &$taskInfo, AbstractTask $task, SchedulerModuleController $parentObject): void instead of the pre 1.5.7 : protected function initFields(array &$taskInfo, $task, SchedulerModuleController $parentObject): void

i'm on typo3 10.4.32, typo3 scheduler call additional_scheduler on ligne 604 of SchedulerModuleController.php : $additionalFields = $providerObject->getAdditionalFields($taskInfo, null, $this);

Apen commented 1 year ago

Should be fixed in last release 1.5.9