[Erp5-report] r33032 ivan - in /erp5/trunk/bt5/erp5_ingestion: SkinTemplateItem/portal_skin...

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Feb 23 14:31:45 CET 2010


Author: ivan
Date: Tue Feb 23 14:31:44 2010
New Revision: 33032

URL: http://svn.erp5.org?rev=33032&view=rev
Log:
Attach to context only if not already attached.

Modified:
    erp5/trunk/bt5/erp5_ingestion/SkinTemplateItem/portal_skins/erp5_ingestion/Base_contribute.xml
    erp5/trunk/bt5/erp5_ingestion/bt/revision

Modified: erp5/trunk/bt5/erp5_ingestion/SkinTemplateItem/portal_skins/erp5_ingestion/Base_contribute.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ingestion/SkinTemplateItem/portal_skins/erp5_ingestion/Base_contribute.xml?rev=33032&r1=33031&r2=33032&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ingestion/SkinTemplateItem/portal_skins/erp5_ingestion/Base_contribute.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_ingestion/SkinTemplateItem/portal_skins/erp5_ingestion/Base_contribute.xml [utf8] Tue Feb 23 14:31:44 2010
@@ -116,8 +116,10 @@
   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

Modified: erp5/trunk/bt5/erp5_ingestion/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ingestion/bt/revision?rev=33032&r1=33031&r2=33032&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ingestion/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_ingestion/bt/revision [utf8] Tue Feb 23 14:31:44 2010
@@ -1,1 +1,1 @@
-74
+75




More information about the Erp5-report mailing list