Skip to content

Commit

Permalink
fix(filter): Fix noTerm option for filtering
Browse files Browse the repository at this point in the history
The noTerm option was not being copied down to the internal filter
representation and so was preventing the filter being applied in
rowSearcher.searchColumn. This change ensures that flag is now
propagated correctly.

Resolves #5550 and #5551
  • Loading branch information
StrangelyTyped committed Aug 5, 2016
1 parent 5e4c1dd commit 45bb113
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/core/services/rowSearcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ module.service('rowSearcher', ['gridUtil', 'uiGridConstants', function (gridUtil
}

if ( !gridUtil.isNullOrUndefined(filter.term) ){
// it is possible to have noTerm. We don't need to copy that across, it was just a flag to avoid
// getting the filter ignored if the filter was a function that didn't use a term
// it is possible to have noTerm.
newFilter.term = rowSearcher.stripTerm(filter);
}
newFilter.noTerm = filter.noTerm;

if ( filter.condition ){
newFilter.condition = filter.condition;
Expand Down

0 comments on commit 45bb113

Please sign in to comment.