Commit c4e9532b authored by Yoshinori Okuji's avatar Yoshinori Okuji

Use object_path instead of object_uid to get object_path from REQUEST. Use...

Use object_path instead of object_uid to get object_path from REQUEST. Use self instead of the object to get the portal object.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2932 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cfca29ab
......@@ -870,7 +870,7 @@ class SelectionTool( UniqueObject, SimpleItem ):
# Find the object which needs to be updated
object_uid = REQUEST.get('object_uid', None)
object_path = REQUEST.get('object_uid', None)
object_path = REQUEST.get('object_path', None)
if object_uid is not None:
o = self.portal_catalog.getObject(object_uid)
else:
......@@ -879,7 +879,7 @@ class SelectionTool( UniqueObject, SimpleItem ):
if o is None:
# we first try to reindex the object, thanks to the object_path
if object_path is not None:
o = o.getPortalObject().restrictedTraverse(object_path)
o = self.getPortalObject().restrictedTraverse(object_path)
if o is not None:
o.immediateReindexObject()
object_uid = o.getUid()
......
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