Skip to content

Conversation

@Tejas242
Copy link

This pull request introduces a new configuration setting to control the maximum number of records exported in the src/export.php file. The changes ensure that exports are limited based on this setting, improving performance and preventing excessive data handling.

Configuration Update:

  • src/include/config.sample.php: Added a new configuration setting, ExportMaxRecords, with a default value of 10,000. This setting allows administrators to define the maximum number of records to export, with 0 indicating no limit.

Export Logic Enhancement:

  • src/export.php: Introduced a variable $maxExportRecords to fetch the ExportMaxRecords configuration value. If set to 0, it defaults to PHP_INT_MAX to allow unlimited exports. This ensures flexibility in export limits.
  • src/export.php: Updated the export loop condition to use $maxExportRecords instead of the previous CurrentViewEntriesPerPage, effectively enforcing the export limit.

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