Skip to content

Commit

Permalink
Merge pull request #885 from hotwax/#715_rejection_page
Browse files Browse the repository at this point in the history
Fixed: Used the rejectionReasonId_s(String) field instead of rejectionReasonId_txt_en while preparing Solr Facets in order to calculate facets correctly.
  • Loading branch information
ravilodhi authored Dec 19, 2024
2 parents 962acf4 + 073de6b commit 69bd4d6
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 69bd4d6

Please sign in to comment.