From 54ddf21ddd358097639ed7ca31d68c7b2263cff8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Thu, 9 Mar 2006 19:14:29 +0000 Subject: [PATCH] Bug fix: when clicking the wheel on a multi relation field, filter the list of displayed item with a OR on all entered values. Thanks guy git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6067 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Form/SelectionTool.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/product/ERP5Form/SelectionTool.py b/product/ERP5Form/SelectionTool.py index f7c8f0cd71..9718b05e35 100755 --- a/product/ERP5Form/SelectionTool.py +++ b/product/ERP5Form/SelectionTool.py @@ -1030,7 +1030,6 @@ class SelectionTool( UniqueObject, SimpleItem ): selection_name, current_uid_list) - field_value = '' REQUEST.form['field_%s' % field.id] = field_value # XXX portal_status_message = # "Please select one or more object to define the field: @@ -1068,7 +1067,7 @@ class SelectionTool( UniqueObject, SimpleItem ): kw['previous_form_id'] = form_id - kw[field.get_value('catalog_index')] = field_value + kw[field.get_value('catalog_index')] = str(field_value).splitlines() """ # We work with strings - ie. single values @@ -1088,7 +1087,7 @@ class SelectionTool( UniqueObject, SimpleItem ): redirect_url = '%s/%s?%s' % ( o.absolute_url() , 'Base_viewRelatedObjectList' , make_query(kw) - ) + ) REQUEST[ 'RESPONSE' ].redirect( redirect_url ) -- 2.30.9