Commit 02cf06c1 authored by gijs's avatar gijs
Browse files

Avoid unnecessary display of Bibliography header

parent af470583
......@@ -211,7 +211,7 @@ class MultiLinkField(object):
else:
key = keyFilter(target)
for existingLink in self.value:
if existingLink.target == key:
if existingLink.target == key or existingLink.target == target:
return existingLink
self.value.append(Link(key, self.contentType, inline, label=target))
......
......@@ -21,7 +21,7 @@
{{ produser.content }}
{% endif %}
{% if produser.events %}
{% if produser.events and produser.events.targets %}
<h2>Activities</h2>
<ul class="simplelist">
{% for event in produser.events.targets %}
......@@ -35,7 +35,7 @@
</ul>
{% endif %}
{% if produser.bibliography %}
{% if produser.bibliography and produser.bibliography.targets %}
<h2>Bibliography</h2>
<ul class="simplelist">
{% for entry in produser.bibliography.targets %}
......
Supports Markdown
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