Commit be529d05 authored by Boxiang Sun's avatar Boxiang Sun

erp5_officejs_support_request_ui: Use a better way to check whether there has a file uploaded.

parent 341cc5a9
......@@ -36,7 +36,7 @@ support_request.edit(
support_request.submit()
# create an HTML Post
if description or file != 'undefined':
if description or file is not None:
post_module = portal.post_module
post_1 = post_module.newContent(portal_type='HTML Post')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment