Skip to content

Commit

Permalink
Fix plain_data() macro.
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Nikolaev committed Jan 29, 2021
1 parent 4339759 commit f62fb36
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Resources/views/macros.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,17 @@

{%- import _self as that -%}

{% for name, value in data %}
{%- for name, value in data -%}

{{ that.plain_property(name, trans_prefix ~ name, value, trans_domain) -}}
{%- set property = that.plain_property(name, trans_prefix ~ name, value, trans_domain)|trim -%}

{% endfor %}
{%- if property is not same as('') %}

{{ property -}}

{%- endif -%}

{%- endfor -%}

{% endmacro %}

Expand Down

0 comments on commit f62fb36

Please sign in to comment.