Skip to content

Commit

Permalink
no brackets for displaying lists or tuples
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibautBorn committed Aug 29, 2023
1 parent db8e434 commit 67fd328
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plone/app/contenttypes/browser/folder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 67fd328

Please sign in to comment.