contributte / datagrid

:muscle: DataGrid for Nette Framework: filtering, sorting, pagination, tree view, table view, translator, etc
https://contributte.org/packages/contributte/datagrid/
MIT License
290 stars 193 forks source link

Fix for searching id over array data source #1066

Closed radimSekera closed 1 year ago

radimSekera commented 1 year ago

When condition for filterOne looks like `$condition = ['id' => '25661']; and object structure is ['id' => int, ...] item detail is not working correctly.

Thank you for your time

radimvaculik commented 1 year ago

@radimSekera Please, add some tests.

radimvaculik commented 1 year ago

You assume that the key will be called id. But what if its name is different? For example age and is also int?

radimvaculik commented 1 year ago

@radimSekera Thanks. Great. Could you introduce some more tests, please?

radimvaculik commented 1 year ago

@radimSekera Ping.