Skip to content

ORDER BY has two similar conditions #26708

Closed
@Usik2203

Description

@Usik2203

Preconditions (*)

Magento 2.4-develop

Steps to reproduce (*)

  1. We have products in category
  2. Go to app/code/Magento/Catalog/Block/Product/ListProduct.php and add

Screenshot 2020-02-05 at 11 20 52

3. Go to page on category

Expected result (*)

  1. condition cat_index.position asc shouldn't be double in ORDER BY

Actual result (*)

  1. We can see two similar conditions in ORDER BY

Screenshot 2020-02-05 at 11 25 51

This conditon to ORDER BY was added in app/code/Magento/Catalog/Model/ResourceModel/Product/Collection.php
Screenshot 2020-02-05 at 11 38 56

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: OtherFixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReported on 2.4.0Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions