Activity entry: Fix change description being displayed twice when only 1 attribute changed

This commit is contained in:
Molkobain
2021-04-10 18:27:39 +02:00
parent 8f03ac4aa3
commit 48bc8b2341

View File

@@ -3,7 +3,7 @@
{% block iboActivityEntryExtraClasses %}ibo-edits-entry{% endblock %}
{% block iboActivityEntryMainInformationContent %}
{% if (oUIBlock.GetAttributes()|length == 1) and (oUIBlock.GetAttributes()[0]['descriptions'].length == 1) %}
{% if (oUIBlock.GetAttributes()|length == 1) and (oUIBlock.GetAttributes()|first['descriptions']|length == 1) %}
<span class="ibo-edits-entry--short-description">{{ oUIBlock.GetShortDescriptionAsHtml()|raw }}</span>
{% else %}
<a href="#" class="ibo-edits-entry--short-description" data-role="ibo-edits-entry--long-description-toggler">