Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.10, 2.2
    • Component/s: Blocks: Forms
    • Labels:
      None
    • Urgency:
      Normal

      Description

      <xsl:template match="fi:booleanfield[@state='output' or
      fi:styling/@type='output']" priority="3">
      <input id="{@id}" type="checkbox" title="{fi:hint}" disabled="disabled"
      value="{@true-value}">
      <xsl:if test="fi:value != 'false'">
      <xsl:attribute name="checked">checked</xsl:attribute>
      </xsl:if>
      </input>
      </xsl:template>

      must add a name attribute.

      <xsl:template match="fi:booleanfield[@state='output' or
      fi:styling/@type='output']" priority="3">
      <input id="{@id}" type="checkbox" title="{fi:hint}" disabled="disabled"
      value="{@true-value}" name="{@id}">
      <xsl:if test="fi:value != 'false'">
      <xsl:attribute name="checked">checked</xsl:attribute>
      </xsl:if>
      </input>
      </xsl:template>

      Without the name attribute, It's not convenient to find the value of checkbox by script.

        Activity

        Hide
        Gabriele Columbro added a comment -
        Patch must be applied to resolve the issue (IMHO it's worth)
        Show
        Gabriele Columbro added a comment - Patch must be applied to resolve the issue (IMHO it's worth)
        Hide
        Gabriele Columbro added a comment -
        Patch for the trunk for adding the input name.
        Show
        Gabriele Columbro added a comment - Patch for the trunk for adding the input name.

          People

          • Assignee:
            Jörg Heinicke
            Reporter:
            johnson hsu
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development