From 073de6b22b4d71ad3eedbb99036dc616ea1f0284 Mon Sep 17 00:00:00 2001 From: Ravi Lodhi Date: Thu, 19 Dec 2024 10:47:56 +0530 Subject: [PATCH] Fixed: Used the rejectionReasonId_s(String) field instead of rejectionReasonId_txt_en while preparing Solr Facets in order to calculate facets correctly (#715). --- src/components/DownloadRejectedOrdersModal.vue | 2 +- src/store/modules/rejection/actions.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/DownloadRejectedOrdersModal.vue b/src/components/DownloadRejectedOrdersModal.vue index 10cb2e9c..3f276492 100644 --- a/src/components/DownloadRejectedOrdersModal.vue +++ b/src/components/DownloadRejectedOrdersModal.vue @@ -213,7 +213,7 @@ filters.rejectedAt_dt = {value: rejectionPeriodFilter} } if (rejectedOrderQuery.rejectionReasons.length) { - filters.rejectionReasonId_txt_en = {value: rejectedOrderQuery.rejectionReasons} + filters.rejectionReasonId_s = {value: rejectedOrderQuery.rejectionReasons} } const query = prepareSolrQuery({ diff --git a/src/store/modules/rejection/actions.ts b/src/store/modules/rejection/actions.ts index b5fb2de3..e2dff06d 100644 --- a/src/store/modules/rejection/actions.ts +++ b/src/store/modules/rejection/actions.ts @@ -31,7 +31,7 @@ const actions: ActionTree = { facet: { "total":"unique(orderId_s)", "rejectionReasonIdFacet":{ - "field":"rejectionReasonId_txt_en", + "field":"rejectionReasonId_s", "mincount":1, "limit":-1, "sort":"index", @@ -114,7 +114,7 @@ const actions: ActionTree = { filters.rejectedAt_dt = {value: rejectionPeriodFilter} } if (rejectedOrderQuery.rejectionReasons.length) { - filters.rejectionReasonId_txt_en = {value: rejectedOrderQuery.rejectionReasons} + filters.rejectionReasonId_s = {value: rejectedOrderQuery.rejectionReasons} } const query = prepareSolrQuery({