due to excel limit, title can not exceed 31 characters

This commit is contained in:
Mathieu Jaumotte 2022-07-26 11:41:16 +02:00
parent a06a2c9592
commit 9798cb8a09

View File

@ -449,7 +449,9 @@ class SpreadSheetFormatter implements FormatterInterface
protected function getTitle()
{
return $this->translator->trans($this->export->getTitle());
$title = $this->translator->trans($this->export->getTitle());
return substr($title, 0, 30) . '…';
}
protected function initializeCache($key)