Skip to content

Commit ab186ad

Browse files
committed
Fixed display of description in modal
1 parent 615a680 commit ab186ad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Controller/Admin/QrCrudController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ public function configureFields(string $pageName): iterable
6363
return [
6464
TextField::new('title', new TranslatableMessage('qr.title'))
6565
->setTemplatePath('fields/link/link_to_edit.html.twig'),
66-
TextEditorField::new('description', new TranslatableMessage('qr.description')),
66+
TextEditorField::new('description', new TranslatableMessage('qr.description'))
67+
->formatValue(fn ($value) => nl2br($value)),
6768
CollectionField::new('urls', new TranslatableMessage('qr.urls'))
6869
->allowAdd()
6970
->allowDelete()

0 commit comments

Comments
 (0)