diff --git a/bt5/erp5_ingestion/SkinTemplateItem/portal_skins/erp5_ingestion/Base_contribute.xml b/bt5/erp5_ingestion/SkinTemplateItem/portal_skins/erp5_ingestion/Base_contribute.xml index c05c1a488577c97f0cf242a7935bf7581e4e4b2e..cb8aa193d3132bfe39418842ba0495d3a609fc8e 100644 --- a/bt5/erp5_ingestion/SkinTemplateItem/portal_skins/erp5_ingestion/Base_contribute.xml +++ b/bt5/erp5_ingestion/SkinTemplateItem/portal_skins/erp5_ingestion/Base_contribute.xml @@ -116,8 +116,10 @@ else:\n if attach_document_to_context:\n # attach document to current context using follow_up\n follow_up_list = document.getFollowUpValueList()\n - follow_up_list.append(context)\n - document.setFollowUpValueList([x.getRelativeUrl() for x in follow_up_list])\n + if context not in follow_up_list:\n + # attach to context only if not already attached\n + follow_up_list.append(context)\n + document.setFollowUpValueList([x.getRelativeUrl() for x in follow_up_list])\n # edit document \n if document_edit_kw is not {}:\n document.edit(**document_edit_kw)\n diff --git a/bt5/erp5_ingestion/bt/revision b/bt5/erp5_ingestion/bt/revision index 0aeb5485442b9ed8a2d59d629933a00db4473ebf..a76c74dcec6ab8ba53c5d5b4de054eb43f68fe67 100644 --- a/bt5/erp5_ingestion/bt/revision +++ b/bt5/erp5_ingestion/bt/revision @@ -1 +1 @@ -74 \ No newline at end of file +75 \ No newline at end of file