mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
Default dive number on manual CSV import
If manual CSV import does not have any dive number, give a default one so that the dives get import and not silently ignored. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f32e6a853e
commit
61ad81cf7a
1 changed files with 11 additions and 6 deletions
|
@ -61,12 +61,17 @@
|
||||||
<xsl:param name="line"/>
|
<xsl:param name="line"/>
|
||||||
|
|
||||||
<xsl:variable name="number">
|
<xsl:variable name="number">
|
||||||
<xsl:if test="$numberField >= 0">
|
<xsl:choose>
|
||||||
<xsl:call-template name="getFieldByIndex">
|
<xsl:when test="$numberField >= 0">
|
||||||
<xsl:with-param name="index" select="$numberField"/>
|
<xsl:call-template name="getFieldByIndex">
|
||||||
<xsl:with-param name="line" select="$line"/>
|
<xsl:with-param name="index" select="$numberField"/>
|
||||||
</xsl:call-template>
|
<xsl:with-param name="line" select="$line"/>
|
||||||
</xsl:if>
|
</xsl:call-template>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:otherwise>
|
||||||
|
<xsl:value-of select="'0'"/>
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
</xsl:variable>
|
</xsl:variable>
|
||||||
|
|
||||||
<xsl:if test="$number >= 0">
|
<xsl:if test="$number >= 0">
|
||||||
|
|
Loading…
Add table
Reference in a new issue