Project

General

Profile

Actions

Bug #85485

closed

JsonView forces order by UID

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

  • Category set to Extbase
Actions #2

Updated by Markus Klein over 1 year ago

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

Actions #3

Updated by Riccardo De Contardi about 1 year 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 11 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