Skip to content

[6.x] Forms 2: Scope submission counts and fake submissions to the selected site - #15350

Open
duncanmcclean wants to merge 2 commits into
forms-2from
forms-2-site-counts
Open

[6.x] Forms 2: Scope submission counts and fake submissions to the selected site#15350
duncanmcclean wants to merge 2 commits into
forms-2from
forms-2-site-counts

Conversation

@duncanmcclean

Copy link
Copy Markdown
Member

This pull request fixes an issue where the forms index could show a submission count, but clicking through to the submissions listing showed nothing.

This was happening because the forms index counted submissions across all sites, while the submissions listing auto-applies the selected site filter. Any submissions belonging to another site were counted but never listed.

This PR fixes it by scoping the count on the forms index to the selected site, the same way the collections index does.

This PR also assigns the selected site to generated fake submissions. Previously they never had a site set, so they always resolved to the default site and disappeared from the listing whenever another site was selected. Emails for full pipeline fake submissions are now sent using the submission's site rather than the default site.

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.

1 participant