Skip to content

Conversation

@dezsiszabi
Copy link

Example Plunker: plnkr.co/edit/nL1dvjMAnuvHdHPgGv9L

The s array gets created with a split on character ':' .
If the cellFilter is a simple one like 'currency', than s[1] will be undefined and calling slice on it will throw an exception.

…d filtering from working. Example Plunker: plnkr.co/edit/nL1dvjMAnuvHdHPgGv9L
@c0bra
Copy link
Contributor

c0bra commented Apr 29, 2014

Thanks for the PR! I will try this locally to see how filtering works with a cellFilter enabled.

@c0bra c0bra self-assigned this Apr 29, 2014
@dezsiszabi dezsiszabi changed the title Fixed a bug where using a parameterless cellFilter would stop the grid filtering from working. Fixing filtering bugs Apr 30, 2014
c0bra added a commit that referenced this pull request Aug 4, 2014
@c0bra c0bra merged commit a05fcf1 into angular-ui:master Aug 4, 2014
@BorisKozo
Copy link

@c0bra The second commit of this change caused a regression because an important check was removed from the code. Now if the object contains inner objects it looks for the searched values within the inner object (can even be an infinite loop, I think). Even worse, if the object contains a function it searches for the value within that function code!
See this plunkr - http://plnkr.co/edit/DR3vTXTnTjXw0yyVA3nV?p=preview
Search for 'Lala'

I think the if statement should be restored.

Thanks,
Boris.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants