Also handle composite_show_in_comments in the content server

This commit is contained in:
Kovid Goyal 2023-03-06 19:43:36 +05:30
parent 355cc1b24c
commit 4292dcbdda
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -334,7 +334,7 @@ def render_metadata(mi, table, book_id, iframe_css): # {{{
name = fm.name or field
datatype = fm.datatype
val = mi[field]
if field is 'comments' or datatype is 'comments':
if field is 'comments' or datatype is 'comments' or fm.display?.composite_show_in_comments:
if not val:
return
ias = fm.display?.interpret_as or 'html'