Commit 129a3409 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Make sure template instances are cataloged


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5231 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1736fab1
......@@ -2222,6 +2222,8 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ):
raise ValueError, "Template instances can not be created within Preferences"
if hasattr(aq_base(self), 'isIndexable'): delattr(self, 'isIndexable')
if hasattr(aq_base(self), 'isTemplate'): delattr(self, 'isTemplate')
# Add to catalog
self.reindexObject()
InitializeClass(Base)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment