Skip to content

Commit

Permalink
[Fixes #12770] Thesaurus title label is not rendered (#12771) (#12772)
Browse files Browse the repository at this point in the history
(cherry picked from commit 91f32c6)

Co-authored-by: mattiagiupponi <[email protected]>
  • Loading branch information
github-actions[bot] and mattiagiupponi authored Dec 6, 2024
1 parent e2f8d9c commit d691d75
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions geonode/base/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ def _get_thesauro_keyword_label(item, lang):

@staticmethod
def _get_thesauro_title_label(item, lang):
lang = remove_country_from_languagecode(lang)
tname = ThesaurusLabel.objects.values_list("label", flat=True).filter(thesaurus=item).filter(lang=lang)
if not tname:
return Thesaurus.objects.get(id=item.id).title
Expand Down

0 comments on commit d691d75

Please sign in to comment.