#97156Changing arguments and options in scheduled commands fails
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
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
History 3
-
Alexander Grein commented 03/11/22, 10:07
-
Benni Mack commented and changed status
NewNeeds Feedback 03/23/25, 19:48Hey Alex,
can you recheck? I was not able to reproduce this error in v13/v14.
-
Oliver Bartsch commented and changed status
Needs FeedbackClosed 09/26/25, 11:09Hi,
I have just checked this again and can no longer reproduce this. I’ll therefore close this issue now. In case you still encounter this, please just create a new issue with reference to this one.
Best, Oli
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'); }