Issue Bug Closed

#106801Scheduler cannot switch task types when configured fields are not submitted in FormEngine

Garvin Hicking 05/30/25, 12:29 updated 09/26/25, 10:48

Description

- Open “Scheduler” backend modul
- Click “+ New task“
- Set “task type” to “OptimizeDatabaseTableTask“
- Click “OK” on the “refresh required” dialog
- TYPO3 Exception: PHP Warning: Undefined array key “scheduler_optimizeDatabaseTables_selectedTables” in /var/www/html/typo3-core/typo3/sysext/scheduler/Classes/Task/OptimizeDatabaseTableAdditionalFieldProvider.php line 124

This happens for any task that wants to validate parameters that are not part of the $submittedData array.

Every scheduler FieldProvider that accesses $submittedData seems to need null-coalescing with a proper default value. Maybe there is a better way to populate the default values in such a case.

Reviews 1