Skip to content

Commit

Permalink
Minor: unnecessary/confusing nested <xf:action>
Browse files Browse the repository at this point in the history
  • Loading branch information
avernet authored and ebruchez committed Dec 27, 2021
1 parent 0ac3622 commit 295e127
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions form-runner/jvm/src/main/resources/apps/fr/components/view.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -262,13 +262,11 @@
<xf:action event="DOMActivate">
<xf:setvalue ref="xxf:instance('fr-parameters-instance')/document" value="xxf:instance('fr-search-response')/document/@name"/>
<xf:setvalue ref="xxf:instance('fr-parameters-instance')/draft">true</xf:setvalue>
<xf:action event="DOMActivate">
<xf:send submission="fr-get-document-submission">
<xf:property name="data-or-draft" value="'draft'"/>
</xf:send>
<xf:dispatch name="fr-compute-authorized-operations" target="fr-persistence-model"/>
<xf:action type="xpath">process:runProcessByName('oxf.fr.detail.process', 'new-to-edit')</xf:action>
</xf:action>
<xf:send submission="fr-get-document-submission">
<xf:property name="data-or-draft" value="'draft'"/>
</xf:send>
<xf:dispatch name="fr-compute-authorized-operations" target="fr-persistence-model"/>
<xf:action type="xpath">process:runProcessByName('oxf.fr.detail.process', 'new-to-edit')</xf:action>
</xf:action>
</xf:trigger>
</xf:group>
Expand Down

0 comments on commit 295e127

Please sign in to comment.