Skip to content

Conversation

@karlpotter
Copy link
Contributor

RE: HS #263011

Currently when exporting entries to a CSV via the CLI add-on the status will be listed as "Exporting 0 entries" regardless of the amount of entries a form has. This branch fixes an issue where the entry status was always set to "status" rather than a valid status.

Testing Instructions

  • Create a form and submit it a few times to create entires. You could also use an existing form that has entires.
  • Run the following command subbing FORMID for your form's ID:
    wp gf entry export FORMID
  • Notice that despite the number of entries present on the form, "Exporting 0 entries" will be output next to the progress bar while exporting entries.
  • Check the contents of the CSV file created, notice the correct data and amount of entries are present.
  • Switch to this branch
  • Run the command from above again and notice the correct amount of entries are output to the status text and if you check the created CSV file the data within is the same as master.

@karlpotter karlpotter added the bug label Aug 5, 2019
@karlpotter karlpotter requested a review from richardW8k August 5, 2019 22:14
@karlpotter karlpotter merged commit 683969b into master Aug 6, 2019
@karlpotter karlpotter deleted the fix-entry-export-status branch August 6, 2019 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants