From 3e0c1de8097539f75d42ea7d8b2cf95fe84d6a8d Mon Sep 17 00:00:00 2001 From: Yoshinori Okuji <yo@nexedi.com> Date: Mon, 20 Feb 2006 12:40:08 +0000 Subject: [PATCH] Pass a base category to asSqlExpression, because a base category can be used under another base category. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5753 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Form/Selection.py | 1 + 1 file changed, 1 insertion(+) diff --git a/product/ERP5Form/Selection.py b/product/ERP5Form/Selection.py index 7153308310..c6b7f74980 100755 --- a/product/ERP5Form/Selection.py +++ b/product/ERP5Form/Selection.py @@ -415,6 +415,7 @@ class DomainSelection(Acquisition.Implicit, Traversable, Persistent): select_expression.append('%s.%s = %s_category.uid' % \ (join_table, join_column, k)) select_expression.append(d.asSqlExpression(table='%s_category' % k, + base_category=k, strict_membership=strict_membership)) # XXX We should take into account k explicitely # if we want to support category acquisition -- 2.30.9