From 5d71d6cf550bb32b471b723705ec7c33f11728f5 Mon Sep 17 00:00:00 2001 From: Romain Courteaud <romain@nexedi.com> Date: Thu, 30 Mar 2006 13:15:49 +0000 Subject: [PATCH] Bug fix: parameter list to portal_catalog wasn't used. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6350 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Form/MultiRelationField.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/product/ERP5Form/MultiRelationField.py b/product/ERP5Form/MultiRelationField.py index d8b30090c5..daae91258d 100644 --- a/product/ERP5Form/MultiRelationField.py +++ b/product/ERP5Form/MultiRelationField.py @@ -681,6 +681,10 @@ class MultiRelationStringFieldValidator(Validator.LinesValidator): kw[catalog_index] = value kw['portal_type'] = portal_type_list kw['sort_on'] = catalog_index + parameter_list = field.get_value('parameter_list') + if len(parameter_list) > 0: + for k,v in parameter_list: + kw[k] = v # Get the query results relation_list = portal_catalog(**kw) relation_uid_list = [x.uid for x in relation_list] -- 2.30.9