Commit c0a9aefd authored by Maurice van der Pot's avatar Maurice van der Pot Committed by Maurice van der Pot

Use long resource name in exported HTML if no short resource name is

2008-03-15  Maurice van der Pot  <griffon26@kfk4ever.com>

	* data/stylesheets/html1_gantt.xsl:
	Use long resource name in exported HTML if no short resource name is given,
	also for milestone tasks (bug #439180).


svn path=/trunk/; revision=895
parent 37d81612
2008-03-15 Maurice van der Pot <griffon26@kfk4ever.com>
* data/stylesheets/html1_gantt.xsl:
Use long resource name in exported HTML if no short resource name is given,
also for milestone tasks (bug #439180).
2008-03-15 Maurice van der Pot <griffon26@kfk4ever.com>
* libplanner/mrp-task-manager.c:
......
......@@ -261,7 +261,16 @@
<xsl:for-each select="/project/allocations/allocation[@task-id=$task-id]">
<xsl:sort data-type="number" select="@resource-id" order="descending"/>
<xsl:variable name="resource-id" select="@resource-id"/>
<xsl:value-of select="/project/resources/resource[@id=$resource-id]/@short-name"/>
<xsl:choose>
<xsl:when test="/project/resources/resource[@id=$resource-id]/@short-name = ''">
<xsl:value-of select="/project/resources/resource[@id=$resource-id]/@name"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="/project/resources/resource[@id=$resource-id]/@short-name"/>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="not(position() = last())">
<xsl:text>, </xsl:text>
</xsl:if>
......@@ -284,6 +293,7 @@
<xsl:value-of select="/project/resources/resource[@id=$resource-id]/@short-name"/>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="not(position() = last())">
<xsl:text>, </xsl:text>
</xsl:if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment