Project

General

Profile

Actions

Bug #85485

closed

JsonView forces order by UID

Added by Thomas Löffler almost 6 years ago. Updated 4 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 #1

Updated by Susanne Moog about 4 years ago

  • Category set to Extbase
Actions #2

Updated by Markus Klein 11 months ago

I fail to reproduce this. Any array passed to JsonView returned in identical sorting.

Actions #3

Updated by Riccardo De Contardi 8 months ago

  • Status changed from New to Needs Feedback

Hi, may I ask if this issue is still relevant on recent TYPO3 versions like 11 or 12?

Actions #4

Updated by Christian Kuhn 4 months ago

  • Status changed from Needs Feedback to Closed

Hey. I hope it's ok to close here for now.

Actions

Also available in: Atom PDF