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

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        41d 9h 46m 1 Jörg Heinicke 08/Oct/06 11:36
        Jörg Heinicke made changes -
        Fix Version/s 2.1.10-dev (current SVN) [ 12310931 ]
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 2.2-dev (Current SVN) [ 12310611 ]
        Resolution Fixed [ 1 ]
        Jörg Heinicke made changes -
        Assignee Jörg Heinicke [ joerg.heinicke@gmx.de ]
        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)
        Gabriele Columbro made changes -
        Field Original Value New Value
        Attachment forms-field-styling.diff [ 12342167 ]
        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.
        johnson hsu created issue -

          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