Open
Description
Preconditions and environment
-
Magento version: all
-
Anything else that would help a developer reproduce the bug
/* @var $collection AbstractCollection */ in my case order grid collection
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
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
Metadata
Metadata
Assignees
Labels
USE ONLY for FRAMEWORK RELATED BUG!Gate 3 Passed. Manual verification of the issue completed. Issue is confirmedMay be fixed according to the position in the backlog.Indicates original Magento version for the Issue report.The issue has been reproduced on latest 2.4-develop branchIssue related to Developer Experience and needs help with Triage to Confirm or Reject it
Type
Projects
Status
Ready for Development
Activity
m2-assistant commentedon May 1, 2025
Hi @Genaker. Thank you for your report.
To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce.
@magento I am working on this
Join Magento Community Engineering Slack and ask your questions in #github channel.
⚠️ According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.
🕙 You can find the schedule on the Magento Community Calendar page.
📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.
Genaker commentedon May 1, 2025
PR created: #39879
m2-assistant commentedon Jun 6, 2025
Hi @engcom-Hotel. Thank you for working on this issue.
In order to make sure that issue has enough information and ready for development, please read and check the following instruction: 👇
Area: XXXXX
label to the ticket, indicating the functional areas it may be related to.2.4-develop
branchDetails
- If the issue is reproducible on2.4-develop
branch, please, add the labelReproduced on 2.4.x
.- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
Issue: Confirmed
once verification is complete.engcom-Hotel commentedon Jun 6, 2025
Hello @Genaker,
Thanks for the report and collaboration!
I've analyzed this issue thoroughly. It appears that there's a problem with the
LIKE
condition (when in uppercase) not functioning properly in Magento's order collection filtering.We have tried to reproduce the issue in the latest development i.e. 2.4-develop via making a sample script as below;
Sample Script
The output for the same is as follows:
The issue seems reproducible for us. Hence confirming the issue.
Thanks
11 remaining items