Commit 8199d734 authored by Tatuya Kamada's avatar Tatuya Kamada

We must use unrestrictedResolveValue instead of restrictedResolveValue here,...

We must use unrestrictedResolveValue instead of restrictedResolveValue here, because of the BusinessTemplate responsibility.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37839 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4c924f4c
......@@ -1219,7 +1219,7 @@ class ObjectTemplateItem(BaseTemplateItem):
if recursive_path in update_dict:
action = update_dict[recursive_path]
if action in ('remove', 'save_and_remove'):
document = self.restrictedResolveValue(portal, recursive_path, None)
document = self.unrestrictedResolveValue(portal, recursive_path, None)
if document is None:
# It happens if the parent of target path is removed before
continue
......
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