Skip to content

Commit 45bb113

Browse files
fix(filter): Fix noTerm option for filtering
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
1 parent 5e4c1dd commit 45bb113

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/js/core/services/rowSearcher.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,10 @@ module.service('rowSearcher', ['gridUtil', 'uiGridConstants', function (gridUtil
124124
}
125125

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

132132
if ( filter.condition ){
133133
newFilter.condition = filter.condition;

0 commit comments

Comments
 (0)