Bug #97156
openChanging arguments and options in scheduled commands fails
0%
Description
To reproduce add a symfony command with attributes and/or options to the scheduler task, change an attribute or options and press save.
The following PHP Warning will appear and the changes are not saved:
Core: Error handler (BE): PHP Warning: Undefined array key "command" in /app/private/typo3/sysext/scheduler/Classes/Task/ExecuteSchedulableCommandAdditionalFieldProvider.php line 100
Updated by Alexander Grein over 2 years ago
After a long trip I found out, that the problem comes from the property name (!) of one of my command options.
Only if the name is "action" the problem appears. This is independent wether it's an option or an attribute.
So, both of this configure methods produce the descripted problem:protected function configure(): void
{
$this->addArgument('action', InputArgument::OPTIONAL, 'The name of the action', 'all');
}
protected function configure(): void
{
$this->addOption('action', null, InputOption::VALUE_REQUIRED, 'The name of the action', 'all');
}