Skip to content

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

@martyspain

Description

@martyspain

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions