Commit 0fc7d16e authored by Yoshinori Okuji's avatar Yoshinori Okuji

Use count_method only if the render format is html.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3291 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 18da7c49
No related merge requests found
......@@ -1018,7 +1018,7 @@ class ListBoxWidget(Widget.Widget):
else:
#LOG('ListBox 612', 0, str((selection_name, selection.__dict__)))
if list_method is not None:
if count_method is not None and not selection.invert_mode:
if count_method is not None and not selection.invert_mode and render_format == 'html':
#LOG('ListBox', 0, 'use count_method %r' % count_method)
# If the count method is available, get only required objects.
selection.edit( params = kw, report = 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