Bugfix for the Foundry theme engine: Multiple contact entries with the same key were not processed correctly.

git-svn-id: https://svn.libreccm.org/ccm/trunk@4406 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2016-10-25 07:44:40 +00:00
parent 0e2c58600d
commit 10f748d5d6
1 changed files with 13 additions and 9 deletions

View File

@ -98,15 +98,19 @@
<xsl:variable name="keyId" select="./@key"/>
<xsl:variable name="entry-layout-tree" select="." />
<xsl:if test="$contact-entries[./keyId = $keyId]">
<xsl:apply-templates>
<xsl:with-param name="label"
tunnel="yes"
select="$contact-entries[./keyId = $keyId]/key"/>
<xsl:with-param name="value"
tunnel="yes"
select="$contact-entries[./keyId = $keyId]/value"/>
</xsl:apply-templates>
<xsl:for-each select="$contact-entries[./keyId = $keyId]">
<xsl:apply-templates select="$entry-layout-tree/*">
<xsl:with-param name="label"
tunnel="yes"
select="./key" />
<xsl:with-param name="value"
tunnel="yes"
select="./value" />
</xsl:apply-templates>
</xsl:for-each>
</xsl:if>
</xsl:template>
@ -316,4 +320,4 @@
<xsl:value-of select="$address/isoCountryCode"/>
</xsl:template>
</xsl:stylesheet>
</xsl:stylesheet>