Project

General

Profile

Actions

Bug #70498

closed

The CategoryRepository should obey the sorting field

Added by Sebastian Michaelsen about 9 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2015-10-08
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Needs Decision

Description

sys_category records have a sorting field but CategoryRepository ignores it by default.

This is missing in the CategoryRepository:

    /**
     * @var array
     */
    protected $defaultOrderings = array(
        'sorting' => QueryInterface::ORDER_ASCENDING
    );
Actions #1

Updated by Georg Ringer over 4 years ago

  • Sprint Focus set to PRC
Actions #2

Updated by Benni Mack over 4 years ago

  • Sprint Focus changed from PRC to Needs Decision
Actions #3

Updated by Georg Ringer over 4 years ago

  • Status changed from New to Needs Feedback

I have checked that and yes, there is no default sorting but the sorting column itself doesn't help you much as you need the parent column as well.

Given the tree

- Cat 1
-- Cat 1.a
-- Cat 1.b
- Cat 2
-- Cat 2.a

if you need to render that, you need to first build the tree and only within the same level AND same parent node, the sorting column can be used.

Therefore I am closing this issue.

Actions #4

Updated by Georg Ringer over 4 years ago

  • Status changed from Needs Feedback to Closed
Actions

Also available in: Atom PDF