Uploaded image for project: 'Offre de formation'
  1. Offre de formation
  2. ODF-480

[Critères de recherche] : erreur dans les values des listes déroulantes de critères

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.3.1
    • 1.3.0
    • None
    • None

      L'attribut n'est pas @name mais @value

      <xsl:variable name="value" select="@value"/>
      au lieu de
      <xsl:variable name="value" select="@name"/>

      Exemple

      <select name="degree" id="search-degree-{$uniqueId}">
        <option value=""><i18n:text i18n:key="PLUGINS_ODFWEB_SERVICE_SEARCH_INPUT_DEGREES_ALL"/></option>
        <xsl:for-each select="/search/form/fields/degrees/degree">
          <xsl:sort select="."/>
          <xsl:variable name="value" select="@value"/>
          <option value="{$value}">
            <xsl:if test="/search/form/values/degree[$value = .]">
              <xsl:attribute name="selected">selected</xsl:attribute>
            </xsl:if>
            <xsl:value-of select="."/>
          </option>
         </xsl:for-each>
      </select>
      

      NB : Dans la version 1.1 de l'ODF on utilisait @name

            Unassigned Unassigned
            lperier Laurence Perier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: