From 67fd328da04107851a8c201cd5c56f49bbe5e676 Mon Sep 17 00:00:00 2001 From: Thibaut Born Date: Fri, 25 Aug 2023 16:05:14 +0200 Subject: [PATCH] no brackets for displaying lists or tuples --- plone/app/contenttypes/browser/folder.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plone/app/contenttypes/browser/folder.py b/plone/app/contenttypes/browser/folder.py index 56aa886d..da56ad97 100644 --- a/plone/app/contenttypes/browser/folder.py +++ b/plone/app/contenttypes/browser/folder.py @@ -199,6 +199,10 @@ def tabular_fielddata(self, item, fieldname): ]: value = self.toLocalizedTime(value, long_format=1) + if isinstance(value, (list, tuple)): + value = ', '.join([entry for entry in value]) + + return { # 'title': _(fieldname, default=fieldname), "value": value