Order customer_email LIKE % condition doesn't work because of the Core Magneto Framework issue #39878
Labels
Issue: ready for confirmation
Reported on 2.4.x
Indicates original Magento version for the Issue report.
Triage: Dev.Experience
Issue related to Developer Experience and needs help with Triage to Confirm or Reject it
Preconditions and environment
Magento version: all
Anything else that would help a developer reproduce the bug
Magento\Sales\Model\ResourceModel\Order\Grid\Collection</
$collection->addFieldToFilter($field, ['LIKE' => $value . '%']);
/var/www/html/magento/vendor/magento/module-sales/Model/ResourceModel/Order/Grid/Collection.php
result is:
if make like this :
$collection->addFieldToFilter($field, ['like' => $value . '%']);
it works. You need lower case if you are doing some stuff
it comes from the Zend ok but after some broken magneto code make from it not like but =
i was too tired to test why magento is broken.
please check
Steps to reproduce
test
Expected result
like works
Actual result
like doesn't work
Additional information
No response
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: