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