From 1192a6f9679d320630a312b87b844c5c2aebac1e Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 3 Apr 2024 19:09:12 +0200 Subject: 🐛 JSON date: fix criteria search - sheet display localized version (refs #5883) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/models_common.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ishtar_common/models_common.py') diff --git a/ishtar_common/models_common.py b/ishtar_common/models_common.py index 26bc1c63f..9a595df84 100644 --- a/ishtar_common/models_common.py +++ b/ishtar_common/models_common.py @@ -1218,7 +1218,11 @@ class JsonData(models.Model, CachedGen): if value is None: continue if type(value) in (list, tuple): - value = " ; ".join([str(v) for v in value]) + value = " ; ".join([field.format_value(v) for v in value if v]) + if not value: + continue + else: + value = field.format_value(value) section_name = field.section.name if field.section else None if not sections or section_name != sections[-1][0]: # if section name is identical it is the same -- cgit v1.2.3