[Erp5-report] r19594 - /erp5/trunk/products/ERP5Type/CopySupport.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Feb 29 15:41:51 CET 2008


Author: yusei
Date: Fri Feb 29 15:41:51 2008
New Revision: 19594

URL: http://svn.erp5.org?rev=19594&view=rev
Log:
stop to call makeTemplate here. At this point, uid of sub object is still
old and if calling makeTemplate, original document will be unindexed.


Modified:
    erp5/trunk/products/ERP5Type/CopySupport.py

Modified: erp5/trunk/products/ERP5Type/CopySupport.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/CopySupport.py?rev=19594&r1=19593&r2=19594&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/CopySupport.py (original)
+++ erp5/trunk/products/ERP5Type/CopySupport.py Fri Feb 29 15:41:51 2008
@@ -296,9 +296,9 @@
         except WorkflowException:
           pass
 
-    if self.getParentValue().getPortalType() == 'Preference':
-      # Make this a template if our parent is a preference
-      self.makeTemplate()
+    ### Don't call makeTemplate here!!
+    ### At this point, uid of sub object is still old and
+    ### if calling makeTemplate, original document will be unindexed.
 
     # Call a type based method to reset so properties if necessary
     script = self._getTypeBasedMethod('afterClone')




More information about the Erp5-report mailing list