Exporting with drush wfx return 0 submission unless "view all submissions" is given to anonymous users

Created on 16 March 2023, about 2 years ago
Updated 20 March 2023, about 2 years ago

Problem/Motivation

When running the drush webform:export command it reports "Exported 0 of 0 submissions" even when the form has entries.

Note that when giving anonymous users the right to view all webform submission the same command export the right amount of submission.

Steps to reproduce

1. Create a "test" webform with one text field
2. Add one or more entries
3. Run "vendor/bin/drush wfx test --range-type all"
4. It prints that it exported 0 entries
5. If you add the "view all webform submissions" to anonymous users and run the same command again it will export correctly the entries.

Proposed resolution

When the export is run from the command line it should probably export all entries without taking into account the "view all webform submissions" permission.

Remaining tasks

User interface changes

None

API changes

None

Data model changes

None

🐛 Bug report
Status

Closed: duplicate

Version

6.1

Component

Code

Created by

🇨🇭Switzerland idflood

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024