Commit 7b0c398b authored by Sebastien Robin's avatar Sebastien Robin

default parameter was forgotten in last commit

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30711 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c429e875
...@@ -2914,7 +2914,7 @@ class ModuleTemplateItem(BaseTemplateItem): ...@@ -2914,7 +2914,7 @@ class ModuleTemplateItem(BaseTemplateItem):
continue continue
path, module_id = posixpath.split(path) path, module_id = posixpath.split(path)
portal_type = str(mapping['portal_type']) portal_type = str(mapping['portal_type'])
module = portal._getOb(module_id) module = portal._getOb(module_id, None)
if module is not None: if module is not None:
module.portal_type = portal_type module.portal_type = portal_type
else: 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