Skip to content

Commit

Permalink
For #1410: fix paging of Form Builder forms
Browse files Browse the repository at this point in the history
  • Loading branch information
ebruchez committed Dec 14, 2022
1 parent b3d8d3e commit 23c5689
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
<xf:instance id="fr-search-instance" xxf:exclude-result-prefixes="#all">
<search xmlns="" return-all-indexed-fields="true">
<query/>
<page-size>10</page-size>
<page-size/>
<page-number>1</page-number>
<lang/>
</search>
Expand All @@ -102,9 +102,10 @@

<!-- Set language upon submitting -->
<xf:action event="xforms-submit">
<xf:setvalue ref="page-size" value="$page-size + 1"/>
<xf:setvalue ref="lang" value="'en'"/>
<!-- NOTE: xxf:lang() doesn't seem to work here -->
<!-- <xf:setvalue ref="lang" value="xxf:instance('fr-language-instance')"/>-->
<xf:setvalue ref="lang" value="'en'"/>
</xf:action>
<xf:action event="xforms-submit-error">
<!-- TODO: i18n -->
Expand Down

0 comments on commit 23c5689

Please sign in to comment.