Commit 1e675ac5 authored by Vincent Pelletier's avatar Vincent Pelletier

Also expose order_by_expression sql method parameter.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22665 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 56e72c73
......@@ -1376,8 +1376,9 @@ class CategoryTool( UniqueObject, Folder, Base ):
category_list.append("%s/%s" % (base_category, context.getRelativeUrl()))
sql_kw = {}
if 'limit' in kw:
sql_kw['limit'] = kw['limit']
for sql_key in ('limit', 'order_by_expression'):
if sql_key in kw:
sql_kw[sql_key] = kw[sql_key]
brain_result = self.Base_zSearchRelatedObjectsByCategoryList(
category_list=category_list,
......
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