Commit 18ecea00 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

even if the type based method is based on document's portal type, we still...

even if the type based method is based on document's portal type, we still need a way to know Web Section, otherwise we will get the bad result like 'web_page_module/123/web_page_reference' instead of 'web_section_id/web_page_reference'.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38545 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 51201e3a
......@@ -304,6 +304,7 @@ class WebSection(Domain, DocumentExtensibleTraversableMixin):
except KeyError:
pass
document = document.getObject().__of__(self)
result = document._getTypeBasedMethod('getPermanentURL',
fallback_script_id='WebSection_getPermanentURL')(document,
view=view)
......
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