Skip to content

Commit

Permalink
bug #12619 : Non translated search criterias after updating rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Hassane Diaby committed May 24, 2024
1 parent dc153c7 commit 6461dce
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
? ('ARCHIVE_SEARCH.SEARCH_CRITERIA_FILTER.FIELDS.GUID_TO_INCLUDE' | translate)
: ('ARCHIVE_SEARCH.SEARCH_CRITERIA_FILTER.FIELDS.GUID_TO_EXCLUDE' | translate)) +
' : ' +
criteriaVal.values[0].label
criteriaVal.values[0].value.value
"
matTooltipClass="vitamui-tooltip"
[matTooltipShowDelay]="300"
Expand All @@ -167,7 +167,7 @@
? ('ARCHIVE_SEARCH.SEARCH_CRITERIA_FILTER.FIELDS.GUID_TO_INCLUDE' | translate)
: ('ARCHIVE_SEARCH.SEARCH_CRITERIA_FILTER.FIELDS.GUID_TO_EXCLUDE' | translate)) +
' : ' +
criteriaVal.values[criteriaVal.values.length - 1].label
criteriaVal.values[criteriaVal.values.length - 1].value.value
}}
</div>
</ng-container>
Expand Down Expand Up @@ -240,7 +240,9 @@
criteriaValue.valueTranslated
? ('ARCHIVE_SEARCH.SEARCH_CRITERIA_FILTER.' + getCategoryName(criteriaVal.category) + '.' + criteriaValue.label
| translate)
: criteriaValue.label
: criteriaVal.key === 'ALL_ARCHIVE_UNIT_TYPES'
? criteriaValue.label
: criteriaValue.value.value
}}"
matTooltipClass="vitamui-tooltip"
[matTooltipShowDelay]="300"
Expand All @@ -264,7 +266,7 @@
criteriaValue.valueTranslated
? ('ARCHIVE_SEARCH.SEARCH_CRITERIA_FILTER.' + getCategoryName(criteriaVal.category) + '.' + criteriaValue.label
| translate)
: (criteriaValue.label | truncate: 50)
: ((criteriaVal.key === 'ALL_ARCHIVE_UNIT_TYPES' ? criteriaValue.label : criteriaValue.value.value) | truncate: 50)
}}
</div>
<div
Expand Down

0 comments on commit 6461dce

Please sign in to comment.