Commit a6cb4a6a authored by Jérome Perrin's avatar Jérome Perrin

revert r16886. The problem with this change was that the list_lines was stored

in the selection, and can never be reseted, so using a TALES for "lines" in
listbox was not working, because it was always returning the value from
selection.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29378 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5f5c6019
......@@ -2411,10 +2411,6 @@ class ListBoxHTMLRenderer(ListBoxRenderer):
def getMaxLineNumber(self):
"""Return the maximum number of lines shown in a page.
"""
list_lines = self.getParamDict().get('list_lines', None)
if list_lines is not None:
# it's possible to override max lines from selection parameters
return int(list_lines)
return self.field.get_value('lines')
getMaxLineNumber = lazyMethod(getMaxLineNumber)
......
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