Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
term.value1 = '';
term.value2 = '';
term.is_date = false;
+
+ if (term.field.startsWith('acqlia:') && term.op === '') {
+ // default operator for line item attributes should be "contains"
+ term.op = '__fuzzy';
+ } else if (this.searchTermDatatypes[term.field] !== 'text' && term.op.endsWith('__fuzzy')) {
+ // avoid trying to use the "contains" operator for non-text fields
+ term.op = '';
+ }
}
// conditionally clear the search term after changing
// to selected search operators