Commit 3f36887b authored by Arnaud Fontaine's avatar Arnaud Fontaine

ZODB Components: Tool Component: Only validated 'reference' must be considered...

ZODB Components: Tool Component: Only validated 'reference' must be considered when registering a Tool.

Otherwise setting an invalid reference will make the Component 'modified' but
try to use that invalid reference to register it and fail.
parent 2b65ad60
......@@ -56,7 +56,7 @@ class ToolComponent(DocumentComponent):
For FS Tools, this is done during Product initialize() by
Products.CMFCore.utils.ToolInit.
"""
tool_class = getattr(module_obj, self.getReference())
tool_class = getattr(module_obj, self.getReference(validated_only=True))
# Should we really use ERP5 Product and not ERP5Type considering that ERP5
# may be gone at some point? Or the other way around? For now, all tools
......
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