Project

General

Profile

Actions

Bug #46939

closed

Behaviour of getObjectCountByQuery and language

Added by Eike Starkmann over 11 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Extbase + l10n
Target version:
-
Start date:
2013-04-05
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

I got the problem, that my paginator does not respect the actual language of the site. The amount if item are always all items (sys_language_uid (0,-1))

The Problem is that the paginator calls count() on Tx_Extbase_Persistence_QueryResultInterface to get the amount of items.
So that all comes down to getObjectCountByQuery in Tx_Extbase_Persistence_Storage_Typo3DbBackend. The functions is always working on sys_language_uid (0,-1) if RespectSysLanguage is set.

I'm not sure if changing the function to respect the language would cause any site effects.


Files

t3_test_0.0.0_201409251034.zip (515 KB) t3_test_0.0.0_201409251034.zip Test Extension with pagination Rainer Becker, 2014-09-25 10:50

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #84707: Extbase wrongly counting translated objectsClosed2018-04-12

Actions
Actions

Also available in: Atom PDF