Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.x]: Exporting entries from element index table only exports the first page #15389

Closed
martyspain opened this issue Jul 19, 2024 · 2 comments
Closed
Assignees
Labels

Comments

@martyspain
Copy link

martyspain commented Jul 19, 2024

What happened?

Description

When exporting entries from CP > Entries with no rows selected in the element index table, only a subset of the entries are exported rather than all entries as was the behaviour in Craft 4. This happens both when using the default 'Raw data' exporter or a custom exporter, and with any of the formats. I've observed this behaviour on a number of Craft 5 sites with different types of content (Entries, Orders etc.)

It seems that there's a default limit being applied even when the limit field is empty (i.e. 'No limit') and no rows are selected. This makes it basically impossible for larger sites to export out content.

Steps to reproduce

  1. Populate a channel with content entries such that more than one page will be needed in the element index table in CP > Entries (all of our sites show 100 entries per page, not sure if this is the default)
  2. Click the 'Export' button in the bottom right of the element index .
  3. Open the resulting file and observe that the data exported is only a subset of the total data in the channel.

Expected behavior

The downloaded file contains all of the data in the channel, i.e. if the channel has 500 entries, then an exported CSV will contain 500 rows of data plus a header row.

Actual behavior

Only a subset of entries are exported, i.e. if a channel has 500 entries and the default number of items per page is 100, then the exported CSV will only contain 100 rows of data plus a header row.

Craft CMS version

5.2.8

PHP version

8.2

Operating system and version

macOS/Linux

Database type and version

MySQL 8.0

Image driver and version

n/a

Installed plugins and versions

@martyspain martyspain added the bug label Jul 19, 2024
@i-just i-just self-assigned this Jul 19, 2024
@i-just
Copy link
Contributor

i-just commented Jul 19, 2024

Hi, thanks for reporting! I raised a PR for this.

@brandonkelly
Copy link
Member

Craft 5.2.9 is out now with that fix. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants