Feat: Use documents' display name when available

This commit is contained in:
Björn Fromme
2023-10-12 14:56:26 +02:00
parent 603812c7fc
commit 2318db2a55
+1 -1
View File
@@ -62,7 +62,7 @@ class UploadRepository extends ServiceEntityRepository
/** @var Upload $document */
$data[] = [
'value' => $document->getId(),
'text' => $document->getOriginalFilename(),
'text' => $document->getDisplayName() ?? $document->getOriginalFilename(),
];
}