Bug --no-interaction is not passed to finalize child command

There is a bug in this version
K

Kirby

Guest
If an import is started via CLI php cmd.php xf:import --finalize --no-interaction, option --no-interaction is not passed to the finalize child command:

PHP:

Code:
$command = $this->getApplication()->find('xf:import-finalize');
$childInput = new ArrayInput(['command' => 'xf:import-finalize']);
$command->run($childInput, $output);

This causes the question "Would you like to view any import notes and complete the import? (y/n)" to be asked interactively which generates an exception...

Read more

Continue reading...