Skip to content

Commit ed75899

Browse files
committed
Fix the colpath for non-approvers. Was being set to workflow root as only readable calendar.
1 parent e83b186 commit ed75899

File tree

1 file changed

+26
-24
lines changed
  • bw-calendar-xsl-caladminrsrc/src/main/webapp/themes/bedeworkAdminTheme

1 file changed

+26
-24
lines changed

bw-calendar-xsl-caladminrsrc/src/main/webapp/themes/bedeworkAdminTheme/eventsManage.xsl

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -69,30 +69,32 @@
6969
</select>
7070
</div><!--
7171
colpath -->
72-
<xsl:if test="count(/bedework/calendars/calendar) > 1">
73-
<div id="bwEventListCol">
74-
<label for="colPathSetter"><xsl:copy-of select="$bwStr-EvLs-Calendar"/></label>
75-
<select name="colPath"
76-
onchange="setEventList(this.form,'calPath');"
77-
id="colPathSetter">
78-
<xsl:for-each select="/bedework/calendars/calendar">
79-
<option>
80-
<xsl:attribute name="value"><xsl:value-of select="path"/></xsl:attribute>
81-
<xsl:if test="$calendarPath = path">
82-
<xsl:attribute name="selected">selected</xsl:attribute>
83-
</xsl:if>
84-
<xsl:value-of select="path"/>
85-
</option>
86-
</xsl:for-each>
87-
</select>
88-
</div>
89-
</xsl:if>
90-
<xsl:if test="count(/bedework/calendars/calendar) = 1">
91-
<div><input type="hidden" name="colPath" value="{/bedework/calendars/calendar/path}"/></div>
92-
</xsl:if>
93-
<xsl:if test="count(/bedework/calendars/calendar) = 0">
94-
<div><input type="hidden" name="colPath" value="/public/cals/MainCal"/></div>
95-
</xsl:if><!--
72+
<div id="bwEventListCol">
73+
<xsl:choose>
74+
<xsl:when test="count(/bedework/calendars/calendar) > 1">
75+
<label for="colPathSetter"><xsl:copy-of select="$bwStr-EvLs-Calendar"/></label>
76+
<select name="colPath"
77+
onchange="setEventList(this.form,'calPath');"
78+
id="colPathSetter">
79+
<xsl:for-each select="/bedework/calendars/calendar">
80+
<option>
81+
<xsl:attribute name="value"><xsl:value-of select="path"/></xsl:attribute>
82+
<xsl:if test="$calendarPath = path">
83+
<xsl:attribute name="selected">selected</xsl:attribute>
84+
</xsl:if>
85+
<xsl:value-of select="path"/>
86+
</option>
87+
</xsl:for-each>
88+
</select>
89+
</xsl:when>
90+
<xsl:otherwise>
91+
<input type="hidden" name="colPath">
92+
<xsl:attribute name="value"><xsl:value-of select="$calendarPath"/>
93+
</xsl:attribute>
94+
</input>
95+
</xsl:otherwise>
96+
</xsl:choose>
97+
</div><!--
9698
query -->
9799
<xsl:variable name="queryVal">
98100
<xsl:choose>

0 commit comments

Comments
 (0)