Skip to content

Commit 44aa200

Browse files
committed
Fix VichFormType callable returning 'translation_domain' index
1 parent cd274fd commit 44aa200

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Form/Type/VichFileType.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,9 @@ protected function resolveDownloadLabel(mixed $downloadLabel, object $object, Fo
169169

170170
return [
171171
'download_label' => $result['download_label'] ?? $result,
172-
'download_label_translation_domain' => $result['download_label_translation_domain'] ?? false,
172+
'download_label_translation_domain' => $result['download_label_translation_domain']
173+
?? $result['translation_domain']
174+
?? false,
173175
];
174176
}
175177

0 commit comments

Comments
 (0)