From d94a7ca4b58eb48fa7c9f4010334f08ce0281e1f Mon Sep 17 00:00:00 2001 From: OZGCloud <ozgcloud@mgm-tp.com> Date: Fri, 18 Nov 2022 15:03:13 +0100 Subject: [PATCH] OZG-2966 OZG-3171 handle empty attachments --- .../src/main/resources/fop/postfach-nachrichten.xsl | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/goofy-server/src/main/resources/fop/postfach-nachrichten.xsl b/goofy-server/src/main/resources/fop/postfach-nachrichten.xsl index 6102fde686..bd73425b98 100644 --- a/goofy-server/src/main/resources/fop/postfach-nachrichten.xsl +++ b/goofy-server/src/main/resources/fop/postfach-nachrichten.xsl @@ -121,11 +121,13 @@ <fo:table-cell padding="3px" border-color="#ccc" border-width="1px" border-style="solid"> <fo:block>Anhänge</fo:block> </fo:table-cell> - <fo:table-cell padding="3px" border-color="#ccc" border-width="1px" border-style="solid"> - <xsl:for-each select="attachments/attachment"> - <fo:block><xsl:value-of select="."/></fo:block> - </xsl:for-each> - </fo:table-cell> + <xsl:if test="attachments/attachment"> + <fo:table-cell padding="3px" border-color="#ccc" border-width="1px" border-style="solid"> + <xsl:for-each select="attachments/attachment"> + <fo:block><xsl:value-of select="."/></fo:block> + </xsl:for-each> + </fo:table-cell> + </xsl:if> </fo:table-row> </fo:table-body> </fo:table> -- GitLab