Project

General

Profile

Actions

Bug #85485

closed

JsonView forces order by UID

Added by Thomas Löffler almost 6 years ago. Updated 5 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2018-07-05
Due date:
% Done:

0%

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

Description

When I want to get ordered records from a repository and provide it through the JsonView, the result is reordered by UID.

How to reproduce:

  1. Install static_info_tables and static_info_tables_de
  2. Use a controller with overwritten view to JsonView
  3. Use the configuration
            'zones' => [
                '_descendAll' => [
                    '_only' => ['localName', 'uid']
                ]
            ]
    
  4. Use the countryZoneRepository and the method findByCountryOrderedByLocalizedName()
  5. You'll get all zones of one country ordered by the localized name
  6. Assign it to the view
  7. Call this action via e.g. page type
  8. You'll get the zones ordered by UID
Actions

Also available in: Atom PDF