Skip to content

Commit

Permalink
Merge pull request sonata-project#4599 from ejkun/3.x
Browse files Browse the repository at this point in the history
KnpMenu - Set translation_domain even if on_top is true
  • Loading branch information
greg0ire authored Aug 16, 2017
2 parents 548af69 + bcdc4f7 commit cebcfa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/views/Menu/sonata_menu.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@

{% block linkElement %}
{% spaceless %}
{% set translation_domain = item.extra('label_catalogue', 'messages') %}
{% if item.extra('on_top') is defined and not item.extra('on_top') %}
{% set translation_domain = item.extra('translation_domain', 'messages') %}
{% set icon = item.extra('icon')|default(item.level > 1 ? '<i class="fa fa-angle-double-right" aria-hidden="true"></i>' : '') %}
{% else %}
{% set icon = item.extra('icon') %}
Expand Down

0 comments on commit cebcfa6

Please sign in to comment.