Skip to content

Commit

Permalink
Fixed: Used the rejectionReasonId_s(String) field instead of rejectio…
Browse files Browse the repository at this point in the history
…nReasonId_txt_en while preparing Solr Facets in order to calculate facets correctly (#715).
  • Loading branch information
ravilodhi committed Dec 19, 2024
1 parent 962acf4 commit 073de6b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/DownloadRejectedOrdersModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
4 changes: 2 additions & 2 deletions src/store/modules/rejection/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const actions: ActionTree<RejectionState, RootState> = {
facet: {
"total":"unique(orderId_s)",
"rejectionReasonIdFacet":{
"field":"rejectionReasonId_txt_en",
"field":"rejectionReasonId_s",
"mincount":1,
"limit":-1,
"sort":"index",
Expand Down Expand Up @@ -114,7 +114,7 @@ const actions: ActionTree<RejectionState, RootState> = {
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({
Expand Down

0 comments on commit 073de6b

Please sign in to comment.