mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
fix error when filter::describeAction return an array with only one element
This commit is contained in:
parent
7b8d22a486
commit
8e9b94898f
@ -331,7 +331,10 @@ class SpreadSheetFormatter implements FormatterInterface
|
||||
|
||||
if (is_array($description)) {
|
||||
$description = $this->translator
|
||||
->trans($description[0], $description[1]);
|
||||
->trans(
|
||||
$description[0],
|
||||
isset($description[1]) ? $description[1] : []
|
||||
);
|
||||
}
|
||||
|
||||
$worksheet->setCellValue('A'.$line, $description);
|
||||
|
Loading…
x
Reference in New Issue
Block a user