Commit ecb71b0a authored by Hermann Mayer's avatar Hermann Mayer
Browse files

Fixed broken group<->section mapping. Changed section '<hr' printing. (Now...

Fixed broken group<->section mapping. Changed section '<hr' printing. (Now checks against first loop instead off last)
parent c9da08a2
Loading
Loading
Loading
Loading

deploy @ 3d34de86

Original line number Diff line number Diff line
Subproject commit 94901e44d9fa5cdce44ed52666ec49c89be3bb60
Subproject commit 3d34de86466f6dfd51bac8a194a1c457a8309e53
+2 −2
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ class SidebarSection
    protected $id;

    /**
     * @ORM\ManyToOne(targetEntity="Group", inversedBy="sidebarSections")
     * @ORM\ManyToOne(targetEntity="Group", inversedBy="sections")
     * @ORM\JoinColumn(name="group_id", referencedColumnName="id")
     **/
    protected $group;
+4 −2
Original line number Diff line number Diff line
@@ -15,11 +15,13 @@
            {% if (not section.group) or (access) %}

                <h3>{{ section.title }}</h3>
                {{ eval(section.content)|raw }}
                {% if (loop.last != true) %}

                {% if (loop.first != true) %}
                    <hr>
                {% endif %}

                {{ eval(section.content)|raw }}

            {% endif %}

        {% endfor %}