Commit ecb71b0a authored by Hermann Mayer's avatar Hermann Mayer

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
deploy @ 3d34de86
Subproject commit 94901e44d9fa5cdce44ed52666ec49c89be3bb60
Subproject commit 3d34de86466f6dfd51bac8a194a1c457a8309e53
......@@ -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;
......@@ -135,4 +135,4 @@ class SidebarSection
{
return $this->group;
}
}
\ No newline at end of file
}
......@@ -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 %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment