Skip to content

Commit

Permalink
Apply ldh:PostConstruct mode on the injected $form
Browse files Browse the repository at this point in the history
  • Loading branch information
namedgraph committed Dec 17, 2023
1 parent 6a325ac commit 1d66eb6
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -952,8 +952,13 @@ WHERE
</xsl:result-document>
</xsl:for-each>

<!-- a hack to change the request method to POST as we want to append partial data and not replace the whole graph as with PUT in EditMode -->
<ixsl:set-attribute name="action" select="replace($form/@action, '_method=PUT', '_method=POST')" object="id($form-id, ixsl:page())"/>
<xsl:for-each select="id($form-id, ixsl:page())">
<!-- a hack to change the request method to POST as we want to append partial data and not replace the whole graph as with PUT in EditMode -->
<ixsl:set-attribute name="action" select="replace($form/@action, '_method=PUT', '_method=POST')" object="."/>

<xsl:apply-templates select="." mode="ldh:PostConstruct"/>
</xsl:for-each>
<ixsl:set-style name="cursor" select="'default'" object="ixsl:page()//body"/>
</xsl:when>
<!-- there's no <form> so we're not in EditMode - replace the whole content -->
<xsl:otherwise>
Expand Down

0 comments on commit 1d66eb6

Please sign in to comment.