Bug #68225
closedSorting objects by endtime in localisation not possible
0%
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.
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.
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.
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.
Updated by Mathias Brodala almost 7 years ago
- Status changed from New to Closed
Closing as requested.