Project

General

Profile

Actions

Bug #68225

closed

Sorting objects by endtime in localisation not possible

Added by Philipp Idler over 9 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2015-07-16
Due date:
% Done:

0%

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

Description

I have an ordinary list of objects sorted by endtime (access tab):

Repository:

  protected $defaultOrderings = array ('endtime' => \TYPO3\CMS\Extbase\Persistence\QueryInterface::ORDER_ASCENDING);

In default language everything is fine, list of object is sorted by endtime ascending.
Now, on my localized listing objects are sorted randomly (by crdate or something like that).

Second weird thing is, that I am not able to output endtime or startime in fluid. Seems like these two properties are ignored or protected by default.

Actions #1

Updated by Andreas Wolf over 9 years ago

The localized versions are fetched only after the original language has been fetched—that is a basic concept of TYPO3 versioning—, therefore the sorting is applied for the original language. No sorting is done afterwards (on the translated records) again.

Actions #2

Updated by Philipp Idler over 9 years ago

Andreas Wolf wrote:

The localized versions are fetched only after the original language has been fetched—that is a basic concept of TYPO3 versioning—, therefore the sorting is applied for the original language. No sorting is done afterwards (on the translated records) again.

Thanks for you're reply.
Endtime has the same value as it's original language and therefor sorting should be exactly the same for both languages - but is not. I tried also fetching the value directly from original language:

  'l10n_mode' => exclude

Didn't help either :(

Second try:
Created an own timestamp field "hidetime" and set ordering to this field - exact the same problem here.

Actions #3

Updated by Philipp Idler over 9 years ago

I changed sys_language_mode to strict and that seemed to help.
This issue can be closed.

Actions #4

Updated by Mathias Brodala almost 7 years ago

  • Status changed from New to Closed

Closing as requested.

Actions

Also available in: Atom PDF