Commit 19efdc8f authored by Jérome Perrin's avatar Jérome Perrin

Listbox: stat method should be searchResults, not countResults

parent 76d45d01
......@@ -1357,8 +1357,8 @@ class ListBoxRenderer:
# Nothing to do in this case.
stat_method = None
elif stat_method_name == 'portal_catalog':
stat_method = CatalogMethodWrapper(self.getCatalogTool(), 'countResults')
elif stat_method_name == 'countFolder':
stat_method = CatalogMethodWrapper(self.getCatalogTool(), 'searchResults')
elif stat_method_name == 'searchFolder':
stat_method = CatalogMethodWrapper(self.getContext(), stat_method_name)
elif stat_method_name is not None:
stat_method = getattr(self.getContext(), stat_method_name, None)
......
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