Ticket #106 (closed defect: fixed)

Opened 6 months ago

Last modified 6 months ago

Id of stub:itemframe not populated if stub:item nested in other tags

Reported by: mikey Assigned to: nsteiner
Priority: major Milestone: 0.4.0
Component: XML/XSL view engine Version: SVN-trunk
Keywords: Cc:

Description

When nesting the stub:item tag in other tags in a stub:itemframe, the id param does not get populated into nested stub:item instances:

<stub:form send-to-page="shop">
  <stub:itemframe id="shopData">
    <stub:item name="id" type="text"/>
    <stub:item name="title" type="text"/>
    <stub:item name="url" type="text"/>
    <ixsl:if test="/document/shopData/shop/@id">
      <stub:item name="status" type="select">
        <stub:option value="enabled">Aktiviert</stub:option>
        <stub:option value="disabled">Deaktiviert</stub:option>
      </stub:item>
    </ixsl:if>
    <stub:item name="action" type="submit" value="Speichern"/>
  </stub:itemframe>
</stub:form>

When the xsl template for <stub:item name="status" type="select"> is applied, the id param is not set anymore, resulting in a failing include because for the label the include part _status is searched instead of shopData.status.

Change History

11/28/07 11:30:57 changed by mikey

  • status changed from new to closed.
  • resolution set to fixed.

Fixed with changeset 1077.