diff --git a/product/ERP5/Document/WebSection.py b/product/ERP5/Document/WebSection.py index 5032e49b34eac0634773a57c826d7ce29ba7f33e..0448f6b76f89da97efeb948476ed3db83e30a575 100644 --- a/product/ERP5/Document/WebSection.py +++ b/product/ERP5/Document/WebSection.py @@ -227,6 +227,9 @@ class WebSection(Domain, PermanentURLMixIn): if cache is not None: cache[key] = result + if result is not None: + result = result.__of__(self) + return result security.declareProtected(Permissions.View, 'getDocumentValueList') @@ -256,6 +259,9 @@ class WebSection(Domain, PermanentURLMixIn): if cache is not None: cache[key] = result + if result is not None: + result = [doc.__of__(self) for doc in result] + return result security.declareProtected(Permissions.View, 'getPermanentURL')