Skip to content

Order customer_email LIKE % condition doesn't work because of the Core Magneto Framework issue #39878

Open
@Genaker

Description

@Genaker

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:

Image

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 =

Image

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

No one assigned

    Labels

    Area: FrameworkComponent: Framework/DBUSE ONLY for FRAMEWORK RELATED BUG!Issue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P3May be fixed according to the position in the backlog.Reported on 2.4.xIndicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchTriage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

    Type

    No type

    Projects

    Status

    Ready for Development

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions