Commit 3a095522 authored by Ivan Tyagov's avatar Ivan Tyagov

Not only temp object can have no portal_type definition.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37186 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2b1c2803
......@@ -3201,8 +3201,8 @@ class Base( CopyContainer,
"""
searchable_text_list = []
portal_type = self.portal_types.getTypeInfo(self)
if portal_type is None and self.isTempDocument():
# if it's a temp object we have no portal_type definition
if portal_type is None:
# it can be a temp object or a tool (i.e. Activity Tool) for which we have no portal_type definition
# so use definition of 'Base Type' for searchable methods & properties
portal_type = self.portal_types.getTypeInfo('Base Type')
searchable_text_method_id_list = []
......
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