Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-9518

Variable error on the search-criteria.xsl : $path instead of $id

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.1.9, 4.2.0
    • 4.1.8, 4.2.0
    • None
    • None
    • 4.2 M9

      <xsl:for-each select="/search/form/fields/pages/page">
      									<xsl:variable name="id" select="@id"/>
      									<option value="{$path}">
      										<xsl:if test="/search/form/values/page[$id = .]">
      											<xsl:attribute name="selected">selected</xsl:attribute>
      										</xsl:if>
      										<xsl:value-of select="@title"/>
      									</option>
      								</xsl:for-each>
      

      should be

      <option value="{$id}">
      

            laurence Laurence Aumeunier
            lperier Laurence Perier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: