Skip to content

Commit

Permalink
Replaced a leftover "is empty" check (#1232)
Browse files Browse the repository at this point in the history
  • Loading branch information
newbthenewbd authored and rhukster committed Sep 26, 2017
1 parent 230bdcc commit 8c41f89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion themes/grav/templates/forms/fields/list/list.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
{% if field.fields %}
{% for key, val in value %}
{% set itemName = name ? name ~ '.' ~ key : key %}
<li data-collection-item="{{ itemName }}" data-collection-key="{{ key }}" class="{{ (field.collapsible is empty or field.collapsible) and field.collapsed ? 'collection-collapsed' : '' }}">
<li data-collection-item="{{ itemName }}" data-collection-key="{{ key }}" class="{{ (field.collapsible is not defined or field.collapsible) and field.collapsed ? 'collection-collapsed' : '' }}">
<div class="collection-sort"><i class="fa fa-fw fa-bars"></i></div>
{% for childName, child in field.fields %}
{% if childName starts with '.' %}
Expand Down

0 comments on commit 8c41f89

Please sign in to comment.