Fix imperial unit conversion on CSV import

Math only takes numbers, need to ignore the ft part.

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
Miika Turkia 2017-03-30 07:05:51 +03:00 committed by Dirk Hohndel
parent 0a84c6e693
commit 78904b74b1

View file

@ -275,7 +275,7 @@
<xsl:value-of select="translate($depth, ',', '.')"/> <xsl:value-of select="translate($depth, ',', '.')"/>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="translate($depth, ',', '.') * 0.3048"/> <xsl:value-of select="translate(translate($depth, translate($depth, '0123456789,.', ''), ''), ',', '.') * 0.3048"/>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:attribute> </xsl:attribute>