mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
Merge branch 'issue628' into 111_exports_suite
This commit is contained in:
commit
4631f04da6
@ -496,8 +496,13 @@ class SpreadSheetFormatter implements FormatterInterface
|
|||||||
// 3. iterate on `keysExportElementAssociation` to store the callable
|
// 3. iterate on `keysExportElementAssociation` to store the callable
|
||||||
// in cache
|
// in cache
|
||||||
foreach ($keysExportElementAssociation as $key => [$element, $data]) {
|
foreach ($keysExportElementAssociation as $key => [$element, $data]) {
|
||||||
$this->cacheDisplayableResult[$key] =
|
// handle the case when there is not results lines (query is empty)
|
||||||
$element->getLabels($key, array_unique($allValues[$key]), $data);
|
if ([] === $allValues) {
|
||||||
|
$this->cacheDisplayableResult[$key] = $element->getLabels($key, ['_header'], $data);
|
||||||
|
} else {
|
||||||
|
$this->cacheDisplayableResult[$key] =
|
||||||
|
$element->getLabels($key, array_unique($allValues[$key]), $data);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// the cache is initialized !
|
// the cache is initialized !
|
||||||
|
Loading…
x
Reference in New Issue
Block a user