Skip to content

[6.x] Respect the listing sort order when exporting form submissions - #15105

Merged
jasonvarga merged 6 commits into
statamic:6.xfrom
aerni:feature/form-submissions-export-sorting
Sep 16, 2026
Merged

jasonvarga merged 6 commits into
statamic:6.xfrom
aerni:feature/form-submissions-export-sorting

Conversation

@aerni

@aerni aerni commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Issue

Form submission exports ignored the listing's sort order.

The sort was only sent when you picked Filtered Submissions, and that option is disabled unless a search or filter is active. And the default date sort didn't count. So the common case, open a form and hit export, always gave you an arbitrarily ordered file.

Behavior changes

  • All Submissions now exports in the listing's sort order, including the default date sort. It was previously unordered.
  • Filtered Submissions is now only enabled when a search or filter is active. A changed sort used to enable it, but the sort applies either way now, so it would return the same file.

Also

The Filtered Submissions description claimed exports respect the visible columns. They don't, so I dropped that half of the sentence.

@jasonvarga
jasonvarga merged commit 987d746 into statamic:6.x Sep 16, 2026
61 checks passed
jasonvarga added a commit that referenced this pull request Sep 16, 2026
Reconciles with #15105, which made the listing sort order apply to both
export scopes rather than only the filtered one. Its logic was ported by
hand into the extracted ExportSubmissionsModal, which merged cleanly but
still carried the pre-#15105 behaviour, and the filtered-scope
description now mentions search and filters instead of sort order.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
jasonvarga added a commit that referenced this pull request Sep 16, 2026
…ests

FormExportTest covers permissions on the export route; ExportSubmissionsTest,
which arrived with #15105, covers what the export actually produces. The
column test belongs in the latter, and no longer needs the role scaffolding
it was only using to reach the route.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
jasonvarga added a commit that referenced this pull request Sep 16, 2026
Exporters can now opt into column selection via supportsColumnSelection(),
and receive a subset via setColumns(). The submissions export modal gains a
column checkbox list for exporters that support it, and was extracted out of
the listing page into its own component.

The filtered-scope description no longer mentions sort order, which applies
to both scopes since #15105.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants