Fix tests on ExportManager

This commit is contained in:
2023-07-27 22:51:55 +02:00
parent 9690359dfa
commit da6f8511a8
3 changed files with 242 additions and 283 deletions

View File

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