ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

filter only applies to lowercase object properties

Open dtryon opened this issue 13 years ago • 1 comments

As I was implementing filtering in my grid, I noticed that filtering had an issue with object properties that were not lowercase.

For example a column definition like this:

{ field: 'costs.myTotal', displayName: 'My Total' }

The myTotal value is not included in the search using filter.

I tracked the issue to this bit of code in searchProvider:

if(typeof pVal === 'object'){ return searchEntireRow(condition, pVal, c);

When this recursion happens, the object c's properties are not lower case and so it does not search correctly.

I'm adding a pull request that attempts to fix this issue, now.

dtryon avatar Aug 16 '13 10:08 dtryon

I have found the same issue with the lower case, very weird

Fouedelapoche avatar Sep 23 '13 14:09 Fouedelapoche