From 058c9bceb52a0e6b303206006ff9345ddfda3f02 Mon Sep 17 00:00:00 2001 From: ramari16 Date: Wed, 30 Aug 2023 15:29:53 -0400 Subject: [PATCH] [ALS-4947] Update queryBuilder to use new anyRecordOfMulti field (#125) --- .../src/main/webapp/picsureui/picSure/queryBuilder.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pic-sure-hpds-ui/src/main/webapp/picsureui/picSure/queryBuilder.js b/pic-sure-hpds-ui/src/main/webapp/picsureui/picSure/queryBuilder.js index d1e77554..c38b565a 100644 --- a/pic-sure-hpds-ui/src/main/webapp/picsureui/picSure/queryBuilder.js +++ b/pic-sure-hpds-ui/src/main/webapp/picsureui/picSure/queryBuilder.js @@ -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"){