Fix attachment rendering for nodes without description.
This commit is contained in:
parent
4ec3268a23
commit
cc562a9fb1
@ -260,6 +260,7 @@ def _view_handler_asset(node, template_path, template_action, link_allowed):
|
||||
# Treat it as normal file (zip, blend, application, etc)
|
||||
asset_type = 'file'
|
||||
|
||||
if 'description' in node:
|
||||
node['description'] = attachments.render_attachments(node, node['description'])
|
||||
|
||||
template_path = os.path.join(template_path, asset_type)
|
||||
|
Loading…
x
Reference in New Issue
Block a user