mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Activity entry: Fix change description being displayed twice when only 1 attribute changed
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user