Commit b3673977 authored by Vincent Pelletier's avatar Vincent Pelletier

Marshaler does not provide ocject_path parameter. Grab it from request.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10173 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d1a4554c
......@@ -1034,7 +1034,7 @@ class SelectionTool( UniqueObject, SimpleItem ):
return object
# Related document searching
def viewSearchRelatedDocumentDialog(self, index, form_id, object_path,
def viewSearchRelatedDocumentDialog(self, index, form_id,
REQUEST=None, sub_index=None, **kw):
"""
Returns a search related document dialog
......@@ -1042,6 +1042,7 @@ class SelectionTool( UniqueObject, SimpleItem ):
"""
if sub_index != None:
REQUEST.form['sub_index'] = sub_index
object_path = REQUEST.form['object_path']
# Find the object which needs to be updated
o = self.restrictedTraverse(object_path)
# Find the field which was clicked on
......
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