Commit 03ee62b3 authored by Romain Courteaud's avatar Romain Courteaud

Modify acquisition of module name for the selected portal type.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2304 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b454610f
......@@ -213,7 +213,8 @@ class RelationEditor:
portal_module = None
for p_item in self.portal_type_item:
if p_item[0] == portal_type:
portal_module = p_item[1]
#portal_module = p_item[1]
portal_module = o.getPortalObject().getDefaultModuleId( p_item[0] )
if portal_module is not None:
portal_module_object = getattr(o.getPortalObject(), portal_module)
kw ={}
......
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