Skip to content

Search by keyword didn't work properly with "0" value #23424

Closed
@engcom-Golf

Description

@engcom-Golf

Preconditions

  1. Magento 2.3

  2. Add 4 simple products (simple 1, simple 2, simple 0 and simple 4)
    image

  3. set 2 products per page

Steps to reproduce (*)

  1. In field "search by keyword" set 0 and click search

Expected result (*)

  1. Product "simple 0" will be found

Actual result (*)

  1. Product "simple 0" didn't found
    image

Additional info

If we search by "4" product "simple 4" will be found
image

I think it is related to method \Magento\Ui\Component\Filters\Type\Search::applyFilter()

Metadata

Metadata

Assignees

Labels

Component: AdminComponent: SearchFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: 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 developmentReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions