Project

General

Profile

Actions

Bug #105159

open

Workspace Preview: LIMIT Applied Too Early in Extbase Queries

Added by Enes Akgün about 2 months ago. Updated about 1 month ago.

Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
Workspaces
Target version:
-
Start date:
2024-09-29
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
13
PHP Version:
8.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

In workspaces preview, during the initialization of the result set of Extbase queries, the SQL LIMIT clause is applied too early. This results in an incomplete or incorrect preview of records. The LIMIT should be applied only after the overlaying process has taken place to ensure that all relevant records are correctly considered in the Workspace preview.

Steps to Reproduce:

1. Create a new workspace and add some records, both enabled and disabled.
2. In an Extbase repository, create a query and set a limit to fetch the records, for example

   $this->createQuery()->setLimit(2);

3. Execute the query in the workspace context and initialize the result set to trigger the overlay process
4. Observe that not all expected records are retrieved, as the LIMIT has been applied before the records are properly overlaid.

Expected Behavior:
The LIMIT should be applied after the result set has been overlaid for the Workspace preview, ensuring all records are correctly processed before limiting the result.

Actions

Also available in: Atom PDF