Commit 22aa2184 authored by Martin Koller's avatar Martin Koller
Browse files

Fix display of comments in invitation

parent 35d5524f
Pipeline #132447 skipped
......@@ -2289,6 +2289,10 @@ formatICalInvitationHelper(const QString &invitation, const Calendar::Ptr &mCale
// Add the attachment list
incidence[QStringLiteral("attachments")] = invitationAttachments(inc, helper);
if (!inc->comments().isEmpty()) {
incidence[QStringLiteral("comments")] = inc->comments();
}
QString templateName;
switch (inc->type()) {
case KCalendarCore::IncidenceBase::TypeEvent:
......
......@@ -76,7 +76,7 @@
{% if incidence.comments %}
<table border="0" cellspacing="0" cellpadding="4">
<tr>
{% ifequal incidencecomment|length 1 %}
{% ifequal incidence.comments|length 1 %}
<th valign="top">{% i18n "Comment:" %}</th>
<td>{{ incidence.comments|first }}</td>
{% else %}
......
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