Commit 4bf12b76 authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_core: temporairy fix for Base Type Case

parent af90cf22
......@@ -5,7 +5,8 @@
type_tool = context.getPortalObject().portal_types
for portal_type_name in context.getTypeInfo().getTypeAllowedContentTypeList():
type_ = getattr(type_tool, portal_type_name)
if type_.getTypeAcquireLocalRole() and type_.isIndexable():
# Base Type isIndexable raise error, wait for fix
if type_.getTypeAcquireLocalRole() and ((portal_type_name == 'Base Type') or type_.isIndexable()):
reindex = context.recursiveReindexObject
break
else:
......
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