Commit 8517cdc0 authored by Sebastien Robin's avatar Sebastien Robin

corrected bug when there is only one element

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@534 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4f65104f
......@@ -120,7 +120,8 @@ try:
selection_index = selection_index,
selection_name = selection_name,
uids = uids,
object_uid = object_uid)
object_uid = object_uid,
listbox_uid=None)
kw = {}
kw['form_id'] = 'search_relation'
kw['selection_index'] = selection_index
......
......@@ -13,8 +13,9 @@ o = context.portal_catalog.getObject(object_uid)
if o is None:
return "Sorrry, Error, the calling object was not catalogued. Do not know how to do ?"
selected_uids = context.portal_selections.updateSelectionCheckedUidList(selection_name,listbox_uid,uids)
uids = context.portal_selections.getSelectionCheckedUidsFor(selection_name)
if listbox_uid is not None:
selected_uids = context.portal_selections.updateSelectionCheckedUidList(selection_name,listbox_uid,uids)
uids = context.portal_selections.getSelectionCheckedUidsFor(selection_name)
if request.has_key('previous_form_id'):
previous_form_id = request.get('previous_form_id')
......
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