[Erp5-report] r30680 - /erp5/trunk/products/ERP5Type/CopySupport.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Nov 16 18:01:28 CET 2009
Author: yo
Date: Mon Nov 16 18:01:27 2009
New Revision: 30680
URL: http://svn.erp5.org?rev=30680&view=rev
Log:
unindexObject may be called with a copy of an object stored in a business template. In this case, this copy is not connected to a portal, so calling getPortalObject is not safe.
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=30680&r1=30679&r2=30680&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/CopySupport.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/CopySupport.py [utf8] Mon Nov 16 18:01:27 2009
@@ -348,7 +348,7 @@
Unindex the object from the portal catalog.
"""
if self.isIndexable:
- catalog = getToolByName(self.getPortalObject(), 'portal_catalog', None)
+ catalog = getToolByName(self, 'portal_catalog', None)
if catalog is not None:
# Make sure there is not activity for this object
self.flushActivity(invoke=0)
More information about the Erp5-report
mailing list