Browse Source

Fixed wrong template replacements for admin.trans, introduced in #4124 (#4148)

Christian Gripp 8 years ago
parent
commit
b50cfb0597

+ 1 - 1
Resources/views/Block/block_admin_list.html.twig

@@ -30,7 +30,7 @@ file that was distributed with this source code.
                                 {% if admin.dashboardActions|length > 0 %}
                                 {% if admin.dashboardActions|length > 0 %}
                                             <tr>
                                             <tr>
                                                 <td class="sonata-ba-list-label" width="40%">
                                                 <td class="sonata-ba-list-label" width="40%">
-                                                    {{ label|trans({}, admin.translationdomain) }}
+                                                    {{ admin.label|trans({}, admin.translationdomain) }}
                                                 </td>
                                                 </td>
                                                 <td>
                                                 <td>
                                                     <div class="btn-group">
                                                     <div class="btn-group">

+ 1 - 1
Resources/views/Block/block_search_result.html.twig

@@ -18,7 +18,7 @@ file that was distributed with this source code.
                 {% set icon = settings.icon|default('') %}
                 {% set icon = settings.icon|default('') %}
                 {{ icon|raw }}
                 {{ icon|raw }}
                 <h3 class="box-title">
                 <h3 class="box-title">
-                    {{ label|trans({}, admin.translationdomain) }}
+                    {{ admin.label|trans({}, admin.translationdomain) }}
                 </h3>
                 </h3>
 
 
                 <div class="box-tools pull-right">
                 <div class="box-tools pull-right">