Skip to content
Commit 5b714bbb authored by Daniel Windloff's avatar Daniel Windloff Committed by Andreas Fernandez
Browse files

[TASK] DatabaseRecordList: Streamline limit handling

The actual limit, used in the getTable(), depends on various
configurations, current view (default view, single table view)
and current action (view, search or csv export).

To get a better overview, the patch moves limit handling to the
getTable() method, so limit handling in start() and generateList()
can be removed. The properties itemsLimitPerTable
and itemsLimitSingleTable are removed as well.

The configured limit (excluding search and CSV export) is now
forced to be in a range from 5 to 10000.

For translated pages, the pages configuration is used to set the limit.

The limit is set by the following chain:
[default view with multiple tables; single table view]

- default value [20; 100]
- if page ts config is set [itemsLimitPerTable; itemsLimitSingleTable]
- if tca configuration is set [maxDBListItems; maxSingleDBListItems]
- a forced range from 5 to 10000
- if limit is set in the search
- no limit for a csv export

Releases: master
Resolves: #92103
Change-Id: I823c039aa063df8f99e08e190990c5e34466c253
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/65461


Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
parent fe129d57
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment