diff --git a/product/ERP5/Document/WebSection.py b/product/ERP5/Document/WebSection.py index 155618033265fcf4208854338f74e35eb40cf120..f300d66b164720d35050d2ee7a63542298353c37 100644 --- a/product/ERP5/Document/WebSection.py +++ b/product/ERP5/Document/WebSection.py @@ -196,6 +196,7 @@ class WebSection(Domain, PermanentURLMixIn): id=document.getReference(), original_container=document.getParentValue(), original_id=document.getId(), + original_path=document.getPath(), editable_absolute_url=document.absolute_url())).__of__(self) # Try to use a custom renderer if any custom_render_method_id = self.getCustomRenderMethodId() diff --git a/product/ERP5/mixin/cached_convertable.py b/product/ERP5/mixin/cached_convertable.py index 646afe9e4ed3a9dc2e7f57c779efb31e641d1c5c..553aed58c96e09362746baf3d4b94970c217c68e 100644 --- a/product/ERP5/mixin/cached_convertable.py +++ b/product/ERP5/mixin/cached_convertable.py @@ -146,7 +146,8 @@ class CachedConvertableMixin: if self.isTempObject(): return getattr(aq_base(self), 'temp_conversion_data', {})[cache_id] for cache_plugin in self._getCacheFactory().getCachePluginList(): - cache_entry = cache_plugin.get(self.getPath(), DEFAULT_CACHE_SCOPE) + document_path = getattr(self, 'original_path', self.getPath()) + cache_entry = cache_plugin.get(document_path, DEFAULT_CACHE_SCOPE) data_list = cache_entry.getValue().get(cache_id) if data_list: md5sum, mime, data = data_list