Skip to content
Snippets Groups Projects
Commit d9174ce1 authored by Thorge Petersen's avatar Thorge Petersen
Browse files

Fixed accessing extras attribute

parent 9d9fecfe
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,7 @@ Example: ...@@ -27,7 +27,7 @@ Example:
{% endfor %} {% endfor %}
{# Add a max of 3 empty columns #} {# Add a max of 3 empty columns #}
{% set total_extras = data.extras|count %} {% set total_extras = extras|count %}
{% if total_extras <= (custom_extras|count) %}{% set total_extras = (custom_extras|count) %}{% endif %} {% if total_extras <= (custom_extras|count) %}{% set total_extras = (custom_extras|count) %}{% endif %}
{% set empty_extras = (limit or 3) - total_extras %} {% set empty_extras = (limit or 3) - total_extras %}
{% if empty_extras <= 0 %}{% set empty_extras = 1 %}{% endif %} {% if empty_extras <= 0 %}{% set empty_extras = 1 %}{% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment