Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTaylor Cordes <taylor.cordes@rtspecialty.com>2018-06-26 09:06:50 -0400
committerTaylor Cordes <taylor.cordes@rtspecialty.com>2018-06-26 09:06:50 -0400
commitbadb1a59f86e72da12a27e6647d80c75e5e4dafd (patch)
tree58c2f48b3872f6fff35a87355e8683a492364f73 /src
parent1628cc0aa626e53c5fb488766dccc5d2c503baf6 (diff)
downloadtame-badb1a59f86e72da12a27e6647d80c75e5e4dafd.tar.gz
tame-badb1a59f86e72da12a27e6647d80c75e5e4dafd.tar.bz2
tame-badb1a59f86e72da12a27e6647d80c75e5e4dafd.zip
[DEV-3245] fixed bug preventing second paramater in conditionals
Diffstat (limited to 'src')
-rw-r--r--src/current/c1map/render.xsl7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/current/c1map/render.xsl b/src/current/c1map/render.xsl
index ae12767..c81e143 100644
--- a/src/current/c1map/render.xsl
+++ b/src/current/c1map/render.xsl
@@ -354,14 +354,15 @@
]
">
<!-- select the nearest condition -->
- <xsl:variable name="cond" select="ancestor::lvmp:condition[1]" />
+ <xsl:variable name="cond" as="element( lvmp:condition )"
+ select="ancestor::lvmp:condition[1]" />
<xsl:text>( ( </xsl:text>
<xsl:text>$contract->isTruthy( </xsl:text>
<xsl:apply-templates select="$cond/lvmp:when/lvmp:*" mode="lvmp:render" />
- <xsl:if test="$cond/lvmp:cmp/*">
+ <xsl:if test="$cond/lvmp:cmp/text() != ''">
<xsl:text>,</xsl:text>
- <xsl:apply-templates select="$cond/lvmp:cmp/lvmp:*" mode="lvmp:render" />
+ <xsl:apply-templates select="$cond/lvmp:cmp/text()" mode="lvmp:render" />
</xsl:if>
<xsl:text>)</xsl:text>
<xsl:text> ) ? </xsl:text>