Commit 1ccbeab1 authored by Ivan Tyagov's avatar Ivan Tyagov

Make sure to convert to 'int'.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16887 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 92337172
...@@ -2154,7 +2154,7 @@ class ListBoxHTMLRenderer(ListBoxRenderer): ...@@ -2154,7 +2154,7 @@ class ListBoxHTMLRenderer(ListBoxRenderer):
list_lines =self.getParamDict().get('list_lines', None) list_lines =self.getParamDict().get('list_lines', None)
if list_lines is not None: if list_lines is not None:
# it's possible to override max lines from selection parameters # it's possible to override max lines from selection parameters
return list_lines return int(list_lines)
return self.field.get_value('lines') return self.field.get_value('lines')
getMaxLineNumber = VolatileCachingMethod(getMaxLineNumber) getMaxLineNumber = VolatileCachingMethod(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