Skip to content

Filters can't filter ranged from 0  #7103

@Corefix

Description

@Corefix

Preconditions

  1. Community Version 2.1.2
  2. PHP 7.0.10
  3. Some products already in Magento with products with quantity 0 and products without

Steps to reproduce

  1. Go to Magento admin
  2. Go to Products > Catalog
  3. Select Filters
  4. Enter in Quantity from 0 to 0
  5. Press apply filters

Expected result

  1. I would expect to see all products with quantity of 0 to be displayed

Actual result

  1. All products are displayed

Comment

I have traced the problem back to the following class:
\Magento\Ui\Component\Filters\Type\Range

and the method:
applyFilterByType

I'm not sure why the condition in it is how it is, and thats why I didn't want to just do a PR fixing this.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions