diff --git a/product/ERP5/skins/erp5_core/base_update_relation.py b/product/ERP5/skins/erp5_core/base_update_relation.py index bd0fbb49899233f135e00c6b6e7d2e1bd2375d81..01a7a39e7f47293e0fc015ffe55a952113e9bc56 100755 --- a/product/ERP5/skins/erp5_core/base_update_relation.py +++ b/product/ERP5/skins/erp5_core/base_update_relation.py @@ -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 diff --git a/product/ERP5/skins/erp5_core/update_relation.py b/product/ERP5/skins/erp5_core/update_relation.py index 7adb9c4d5dc7fddd8142c1f018c508039390f7f9..a70cdc0fb4a253a5a742a29932fb8749281582ad 100755 --- a/product/ERP5/skins/erp5_core/update_relation.py +++ b/product/ERP5/skins/erp5_core/update_relation.py @@ -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')