Add export functionality to batch select and fix errors

This commit is contained in:
barisgit 2025-08-01 23:12:08 +02:00 committed by Jan Böhmer
parent facfb37383
commit 1fb137e89f
5 changed files with 10 additions and 5 deletions

View file

@ -92,7 +92,7 @@ class EntityExporter
$options = $resolver->resolve($options);
//Handle Excel formats by converting from CSV
if (in_array($options['format'], ['xlsx', 'xls'])) {
if (in_array($options['format'], ['xlsx', 'xls'], true)) {
return $this->exportToExcel($entities, $options);
}

View file

@ -346,7 +346,7 @@ class EntityImporter
$this->configureOptions($resolver);
$options = $resolver->resolve($options);
if (in_array($options['format'], ['xlsx', 'xls'])) {
if (in_array($options['format'], ['xlsx', 'xls'], true)) {
$this->logger->info('Converting Excel file to CSV', [
'filename' => $file->getFilename(),
'format' => $options['format'],