Commit e68d8d62 authored by Romain Courteaud's avatar Romain Courteaud

Bug fix.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2300 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a41859a1
...@@ -846,11 +846,15 @@ class SelectionTool( UniqueObject, SimpleItem ): ...@@ -846,11 +846,15 @@ class SelectionTool( UniqueObject, SimpleItem ):
form = getattr(self, form_id) form = getattr(self, form_id)
field = None field = None
relation_index = 0 relation_index = 0
for field in form.get_fields(include_disabled=0): for field in form.get_fields(include_disabled=0):
if getattr(field, 'is_relation_field', None) and index == relation_index: if getattr(field, 'is_relation_field', None):
if index == relation_index:
break break
else:
relation_index += 1
#return "Done %s %s %s %s" % (index, form_id, field, form_pickle) #return "Done %s %s %s %s %s" % (index, relation_index, form_id, field, form_pickle)
# Find the object which needs to be updated # Find the object which needs to be updated
object_uid = REQUEST.get('object_uid', None) object_uid = REQUEST.get('object_uid', None)
......
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