From 0a58f54e794bd3ab3193daeec972caa42c89b4a8 Mon Sep 17 00:00:00 2001 From: johnkrovitch Date: Tue, 7 Jul 2020 20:03:59 +0200 Subject: [PATCH 1/2] Remove a bug when getting the translation for column names --- src/Utils/TranslationUtils.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Utils/TranslationUtils.php b/src/Utils/TranslationUtils.php index 9f06f55b1..59d4e6b61 100644 --- a/src/Utils/TranslationUtils.php +++ b/src/Utils/TranslationUtils.php @@ -2,8 +2,6 @@ namespace LAG\AdminBundle\Utils; -use LAG\Component\StringUtils\StringUtils; - class TranslationUtils { /** @@ -14,7 +12,6 @@ public static function getTranslationKey( string $adminName, string $key ): string { - $key = StringUtils::underscore($key); $translationPattern = str_replace('{key}', $key, $translationPattern); $translationPattern = str_replace('{admin}', $adminName, $translationPattern); From 18146ff530c3899a3b78b3d3ce1a76139e64419f Mon Sep 17 00:00:00 2001 From: johnkrovitch Date: Tue, 7 Jul 2020 20:15:37 +0200 Subject: [PATCH 2/2] Remove debug code --- src/Resources/views/Form/fields.html.twig | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Resources/views/Form/fields.html.twig b/src/Resources/views/Form/fields.html.twig index 416c079fc..025a3845f 100644 --- a/src/Resources/views/Form/fields.html.twig +++ b/src/Resources/views/Form/fields.html.twig @@ -55,7 +55,3 @@ {% endif %} {% endblock collection_widget %} - -{% block collection_item_widget %} - lo ? -{% endblock collection_item_widget %}