From 6e462b9a62ec8ff870b751570f7ef36ca192b7e8 Mon Sep 17 00:00:00 2001 From: MOHANKUMAR T <31698165+mohan-13@users.noreply.github.com> Date: Tue, 21 Nov 2023 18:54:00 +0530 Subject: [PATCH] Fix. Missing string interpolation in query criteria --- packages/openchs-android/src/service/IndividualService.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/openchs-android/src/service/IndividualService.js b/packages/openchs-android/src/service/IndividualService.js index 9eaaf6884..1cd794df6 100644 --- a/packages/openchs-android/src/service/IndividualService.js +++ b/packages/openchs-android/src/service/IndividualService.js @@ -194,7 +194,7 @@ class IndividualService extends BaseService { dateMidnight, dateMorning); if (!_.isEmpty(programEncounterCriteria)) - programEncounters = programEncounters.filtered(programEncounterCriteria); + programEncounters = programEncounters.filtered(`${programEncounterCriteria}`); if (!_.isNil(addressFilter)) programEncounters = RealmQueryService.filterBasedOnAddress(ProgramEncounter.schema.name, programEncounters, addressFilter); @@ -233,7 +233,7 @@ class IndividualService extends BaseService { dateMidnight, dateMorning); if (!_.isEmpty(encounterCriteria)) - encounters = encounters.filtered(encounterCriteria); + encounters = encounters.filtered(`${encounterCriteria}`); if (!_.isNil(addressFilter)) encounters = RealmQueryService.filterBasedOnAddress(Encounter.schema.name, encounters, addressFilter);