Commit 3e0c1de8 authored by Yoshinori Okuji's avatar Yoshinori Okuji

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
parent 31524a50
......@@ -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
......
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