Skip to content

Commit

Permalink
Call translator once for role translation
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed Jan 19, 2020
1 parent 1a6e607 commit e609f72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/views/Form/roles_matrix_list.html.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% for role, attributes in roles|sort %}
<li>{{ form_widget(attributes.form, {label: attributes.role_translated, value: attributes.role}) }}</li>
<li>{{ form_widget(attributes.form, {label: attributes.role_translated, translation_domain: false, value: attributes.role}) }}</li>
{% if not attributes.is_granted %}
<script>
$('input[value="{{ role }}"]').iCheck('disable');
Expand Down

0 comments on commit e609f72

Please sign in to comment.