diff --git a/bt5/erp5_data_protection/SkinTemplateItem/portal_skins/erp5_data_protection/DataProtectionRequest_eraseSomeOriginalData.py b/bt5/erp5_data_protection/SkinTemplateItem/portal_skins/erp5_data_protection/DataProtectionRequest_eraseSomeOriginalData.py index d2758755898e6ca87dd502f4213debc52b2f81e4..d4bc2d4e5a679140a16d36cbf0025ca75fe032fe 100644 --- a/bt5/erp5_data_protection/SkinTemplateItem/portal_skins/erp5_data_protection/DataProtectionRequest_eraseSomeOriginalData.py +++ b/bt5/erp5_data_protection/SkinTemplateItem/portal_skins/erp5_data_protection/DataProtectionRequest_eraseSomeOriginalData.py @@ -21,6 +21,12 @@ if property_id_list: edit_message = portal.Base_translateString('Properties deleted by data protection manager: ${items}', mapping={'items': ', '.join(property_id_list)}) portal.portal_workflow.doActionFor(document_to_cleanup, 'edit_action', comment=edit_message) + + 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(**edit_kw) clean_up_done = True