Skip to content

Commit

Permalink
Fix a bug in the field headers in the list view
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkrovitch committed Nov 19, 2019
1 parent 4775f26 commit 51b1409
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Field/Render/FieldRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function renderHeader(ViewInterface $admin, FieldInterface $field): strin
$key = TranslationUtils::getTranslationKey(
$configuration->get('translation_pattern'),
$admin->getName(),
$field->getName()
StringUtils::underscore($field->getName())
);
$title = $this->translator->trans($key);
} else {
Expand Down
2 changes: 2 additions & 0 deletions src/Resources/views/CRUD/edit.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
{% form_theme form 'bootstrap_4_layout.html.twig' %}

{% block form %}
{# TODO use the form start/end helper #}
{# {{ form_start() }}#}
<form action=""
method="post"
role="form"
Expand Down

0 comments on commit 51b1409

Please sign in to comment.