datagrid
datagrid copied to clipboard
The FilterRange filter does not work with a zero value
The FilterRange filter does not work correctly when one (or both) of the limit values equals to 0 (zero).
Steps to reproduce:
- Add the number (or text) column to the datagrid.
- Add the FilterRange filter using the
->setFilterRange()
method. - Seed the datasource with random numbers (positive and negative).
- Use the '0' value as the "to" limit.
- The filter is not applied.
The same issue occurs when the "from" limit value is set to '0'.
Affected DataSources:
- DoctrineCollectionDataSource
- DoctrineDataSource
- NetteDatabaseTableDataSource
- NextrasDataSource
A really appreciate a perfect issue description!
I will have a look at it.