Skip to content

Commit

Permalink
feat: always use EQ in TEI searches
Browse files Browse the repository at this point in the history
  • Loading branch information
Bekkalizer authored and superskip committed Jun 28, 2024
1 parent b0958ec commit 934160c
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions scripts/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -3011,25 +3011,13 @@ var trackerCaptureServices = angular.module('trackerCaptureServices', ['ngResour
}
}
else{
numberOfSetAttributes++;
filteredAttributes[attr.id] = true;
if(query.url){
numberOfSetAttributes++;
filteredAttributes[attr.id] = true;
if(attr.operator === textOperators[0]){
query.url = query.url + '&attribute=' + attr.id + ':EQ:' + value;
}else{
query.url = query.url + '&attribute=' + attr.id + ':LIKE:' + value;
}

query.url = query.url + '&attribute=' + attr.id + ':EQ:' + value;
}
else{
numberOfSetAttributes++;
filteredAttributes[attr.id] = true;
if(attr.operator === textOperators[0]){
query.url = 'attribute=' + attr.id + ':EQ:' + value;
}else{
query.url = 'attribute=' + attr.id + ':LIKE:' + value;
}

query.url = 'attribute=' + attr.id + ':EQ:' + value;
}
}
}
Expand Down

0 comments on commit 934160c

Please sign in to comment.