mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-07 17:59:20 +00:00
fix: render email if cn is empty in AptMailReceipt
The receipt email that SOGo generates and sends to the organizer after they create a new calendar event with attendees, displays an empty table in case the attendees have no display name. The email address is only used in an a tag's href attribute which is not visible to the user when the HTML email is rendered. This commit adapts SOGoAptMailReceipt.wox to use the email address as content of the a tags in case the display name is not set. This is done in the same way as SOGoAptMailReminder.wox already does it.
This commit is contained in:
1 parent
bb3b84e9d5
commit
492b63cfc1
1 file changed
+13
-1
@@ -62,7 +62,13 @@ th { font-weight: bold; white-space: nowrap; vertical-align: top; }
|
||||
<var:foreach list="addedAttendees" item="currentRecipient">
|
||||
<tr>
|
||||
<td></td>
|
||||
<var:if condition="currentRecipient.cn">
|
||||
<td><a var:href="currentRecipient.email"><var:string value="currentRecipient.cn" const:escapeHTML="NO"/></a></td>
|
||||
</var:if>
|
||||
<var:if condition="currentRecipient.cn" const:negate="YES">
|
||||
<td><a var:href="currentRecipient.email"><var:string value="currentRecipient.rfc822Email" const:escapeHTML="NO"/></a></td>
|
||||
</var:if>
|
||||
|
||||
</tr></var:foreach>
|
||||
</var:if>
|
||||
|
||||
@@ -75,7 +81,13 @@ th { font-weight: bold; white-space: nowrap; vertical-align: top; }
|
||||
<var:foreach list="deletedAttendees" item="currentRecipient">
|
||||
<tr>
|
||||
<td></td>
|
||||
<td><a var:href="currentRecipient.email"><var:string value="currentRecipient.cn"/></a></td>
|
||||
<var:if condition="currentRecipient.cn">
|
||||
<td><a var:href="currentRecipient.email"><var:string value="currentRecipient.cn" const:escapeHTML="NO"/></a></td>
|
||||
</var:if>
|
||||
<var:if condition="currentRecipient.cn" const:negate="YES">
|
||||
<td><a var:href="currentRecipient.email"><var:string value="currentRecipient.rfc822Email" const:escapeHTML="NO"/></a></td>
|
||||
</var:if>
|
||||
|
||||
</tr></var:foreach>
|
||||
</var:if>
|
||||
<var:if condition="apt.comment.length"
|
||||
|
||||
Reference in new issue
Block a user