diff --git a/product/ZSQLCatalog/SQLCatalog.py b/product/ZSQLCatalog/SQLCatalog.py index c1ee338c71c8b4997423452eba455f4b71daeca5..00a4064c7f0ff6b6f8bbd640af61e3ed5388013f 100644 --- a/product/ZSQLCatalog/SQLCatalog.py +++ b/product/ZSQLCatalog/SQLCatalog.py @@ -2448,7 +2448,8 @@ class Catalog(Folder, """ Returns the number of items which satisfy the where_expression """ # Get the search method method = getattr(self, self.sql_count_results) - return self.queryResults(method, REQUEST=REQUEST, extra_column_list=self.getCatalogSearchResultKeys(), only_group_columns=True, **kw) + kw['only_group_columns'] = True + return self.queryResults(method, REQUEST=REQUEST, extra_column_list=self.getCatalogSearchResultKeys(), **kw) def isAdvancedSearchText(self, search_text): return isAdvancedSearchText(search_text, self.isValidColumn)