Skip to content

Commit

Permalink
Merge pull request ckan#7706 from ckan/datatables-null-translate-fix
Browse files Browse the repository at this point in the history
datatablesview: fix for displaying gettext info in null cells
  • Loading branch information
amercader authored Jul 18, 2023
2 parents cf122e1 + 287cb52 commit 36dfa76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ckanext/datatablesview/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@


def datatablesview_null_label():
return _(config.get('ckan.datatables.null_label', u''))
label = config.get('ckan.datatables.null_label')
return _(label) if label else ''

0 comments on commit 36dfa76

Please sign in to comment.