Commit b2003f09 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_data_protection] Beware of edit order

parent 1b808525
......@@ -24,8 +24,7 @@ if property_id_list:
if 'data' in edit_kw:
# Drop filename too, to prevent triggering guess mime type interaction workflow which run with user permission
edit_kw['filename'] = None
edit_kw['content_type'] = None
document_to_cleanup.edit(filename=None, content_type=None)
document_to_cleanup.edit(**edit_kw)
clean_up_done = True
......
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