Commit defb8e9b authored by Alain Takoudjou's avatar Alain Takoudjou

Try to fix KeyError in function Folder._getOb when installing bt in web_site_module

erp5_web_shadir override _getOb function in VirtualFolderMixin, but all parameters are not well propagated thereafter.
We add missing parameter 'default'.
parent 87abdb2c
......@@ -85,7 +85,7 @@ class VirtualFolderMixin:
return self.getPortalObject().unrestrictedTraverse(document_url)
try:
return Folder._getOb(self, id, **kw)
return Folder._getOb(self, id, default=default, **kw)
except KeyError:
if default is _marker:
raise
......
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