Skip to content

Commit

Permalink
[ALS-4947] Update queryBuilder to use new anyRecordOfMulti field (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
ramari16 authored Aug 30, 2023
1 parent 41a48be commit a3ea52a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ define(["underscore"],
if(filter.get("searchTerm").trim().length !== 0){
if ( filter.attributes.valueType === "ANYRECORDOF" ){
//any record of filter should just pull the list of observations and stuff them in the list.
if(query.query.anyRecordOf){
query.query.anyRecordOf = query.query.anyRecordOf.concat(filter.get("anyRecordCategories"))
if(query.query.anyRecordOfMulti){
query.query.anyRecordOfMulti.push(filter.get("anyRecordCategories"))
} else {
query.query.anyRecordOf = filter.get("anyRecordCategories");
query.query.anyRecordOfMulti = new Array(filter.get("anyRecordCategories"));
}
} else if(filter.attributes.constrainByValue || filter.get("constrainParams").get("constrainByValue")){
if(filter.attributes.valueType==="INFO"){
Expand Down

0 comments on commit a3ea52a

Please sign in to comment.