From f872dc1b131a18c4004bb790812ab3616314ec1b Mon Sep 17 00:00:00 2001
From: Oliver Bartsch <bo@cedev.de>
Date: Wed, 14 Feb 2024 15:14:22 +0100
Subject: [PATCH] [BUGFIX] Do not reset items per page on search

Due to the previously used pagination, the
"items per page" option has been reset when
searching in the record list.

However, since the "new" pagination is
able to handle such filtered list, resetting
the "items per page" option is no longer
necessary and therefore makes lists with
a lot of matched items usable again.

Resolves: #103107
Releases: main, 12.4
Change-Id: Ibeb5a65666a3796f98d3dd61c9efc0bd3bfb0c72
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/82974
Tested-by: Oliver Bartsch <bo@cedev.de>
Tested-by: core-ci <typo3@b13.com>
Reviewed-by: Oliver Bartsch <bo@cedev.de>
---
 .../sysext/backend/Classes/RecordList/DatabaseRecordList.php | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/typo3/sysext/backend/Classes/RecordList/DatabaseRecordList.php b/typo3/sysext/backend/Classes/RecordList/DatabaseRecordList.php
index 07ad7cc8bc5e..8a10d9246b93 100644
--- a/typo3/sysext/backend/Classes/RecordList/DatabaseRecordList.php
+++ b/typo3/sysext/backend/Classes/RecordList/DatabaseRecordList.php
@@ -557,11 +557,6 @@ class DatabaseRecordList
             $itemsPerPage = $this->showLimit;
         }
 
-        // Set limit from search
-        if ($this->searchString) {
-            $itemsPerPage = $totalItems;
-        }
-
         // Init
         $titleCol = $GLOBALS['TCA'][$table]['ctrl']['label'];
         $l10nEnabled = BackendUtility::isTableLocalizable($table);
-- 
GitLab