Skip to content

Commit

Permalink
Fix list heading does not fallback to default locale (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-newvisibility authored Apr 24, 2023
1 parent 3dd6596 commit 028a831
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ListBuilder/DynamicListFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function getFieldDescriptors(Form $form, string $locale): array
}

$title = '';
$translation = $field->getTranslation($locale);
$translation = $field->getTranslation($locale, false, true);

if ($translation) {
$title = $translation->getShortTitle() ?: \strip_tags($translation->getTitle());
Expand Down

0 comments on commit 028a831

Please sign in to comment.