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 authored and gotcha committed Sep 15, 2023
1 parent a18566d commit e742147
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plone/app/contenttypes/browser/folder.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,9 @@ 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 e742147

Please sign in to comment.