Repository navigation
Method "getChildren" sort ordering #11310
Copy link
Copy link
Closed
Labels
Fixed in 2.2.xThe issue has been fixed in 2.2 release lineThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.1.xThe issue has been reproduced on latest 2.1 releaseThe issue has been reproduced on latest 2.1 releaseReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releaseThe issue has been reproduced on latest 2.3 release
Description
Preconditions
Bug can be reproduced in every Magento Version. M1 has it, M2 has it. Even M2.2 has it.
Steps to reproduce
Create a Code which will call the following Class:
M1: Mage_Catalog_Model_Resource_Category_Flat
M2: Magento\Catalog\Model\ResourceModel\Category\Flat
With the following Method:
getChildren()
Expected result
You will get a list of Ids of the children categories.
This list is sorted by the "position" attribute.
Actual result
You will get a list of Ids of the Children Categories.
This list is sorted by entity-id attribute.
I dont see any special case where you would need the sorting by the entity_id. More usual you will need them sorted in the same order as in the Backend(by the position attribute).
Greetings,
Elias
Reacted by Lars Roettig and Harshvardhan Malpani
Metadata
Metadata
Assignees
Labels
Fixed in 2.2.xThe issue has been fixed in 2.2 release lineThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.1.xThe issue has been reproduced on latest 2.1 releaseThe issue has been reproduced on latest 2.1 releaseReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releaseThe issue has been reproduced on latest 2.3 release
Activity
magento-engcom-team commentedon Oct 9, 2017
@EliasKotlyar, thank you for your report.
We've created internal ticket(s) MAGETWO-81314 to track progress on the issue.
denisristic commentedon Oct 10, 2017
I'm working on it #SQUASHTOBERFEST
denisristic commentedon Oct 13, 2017
@ishakhsuvarov this ticket is resolved :)
okorshenko commentedon Oct 17, 2017
Hi @EliasKotlyar the issue has been fixed in 2.2-develop branch and will be available in 2.2.2 release soon
magento-engcom-team commentedon Jan 30, 2018
Hi @EliasKotlyar. Thank you for your report.
The issue has been fixed in magento-engcom/magento2ce#1283 by @magento-engcom-team in 2.3-develop branch
Related commit(s):
The fix will be available with the upcoming patch release.
⏫ Forwardport of magento#11342 to 2.3-develop branch
Merge forwardport of magento#11342 to 2.3-develop branch
🔃 [EngCom] Public Pull Requests - 2.3-develop