datagrid icon indicating copy to clipboard operation
datagrid copied to clipboard

The FilterRange filter does not work with a zero value

Open jaroslavlibal opened this issue 6 years ago • 2 comments

The FilterRange filter does not work correctly when one (or both) of the limit values equals to 0 (zero).

Steps to reproduce:

  1. Add the number (or text) column to the datagrid.
  2. Add the FilterRange filter using the ->setFilterRange() method.
  3. Seed the datasource with random numbers (positive and negative).
  4. Use the '0' value as the "to" limit.
  5. The filter is not applied.

The same issue occurs when the "from" limit value is set to '0'.

Affected DataSources:

  • DoctrineCollectionDataSource
  • DoctrineDataSource
  • NetteDatabaseTableDataSource
  • NextrasDataSource

jaroslavlibal avatar Nov 22 '18 13:11 jaroslavlibal

A really appreciate a perfect issue description!

paveljanda avatar Sep 19 '19 13:09 paveljanda

I will have a look at it.

paveljanda avatar Sep 19 '19 13:09 paveljanda