SearchCriteriaBuilder builds wrong criteria (ORDER BY part) #5738
Labels
Fixed in 2.2.x
The issue has been fixed in 2.2 release line
Fixed in 2.3.x
The issue has been fixed in 2.3 release line
Issue: Clear Description
Gate 2 Passed. Manual verification of the issue description passed
Issue: Confirmed
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed
Issue: Format is not valid
Gate 1 Failed. Automatic verification of issue format is failed
Reproduced on 2.1.x
The issue has been reproduced on latest 2.1 release
Reproduced on 2.2.x
The issue has been reproduced on latest 2.2 release
Empty SearchCriteria causes the error in
\Magento\Framework\Data\Collection\AbstractDb::_setOrder
Target SQL has wrong
ORDER BY
clause (without any field inside):This is the code to get error:
Method \Magento\SalesRule\Model\RuleRepository::getList adds order for $filed=null:
I suppose we need field validation in \Magento\Framework\Data\Collection\AbstractDb::_setOrder
or validation in the \Magento\SalesRule\Model\RuleRepository::getList:
The text was updated successfully, but these errors were encountered: