Commit 02829816 authored by Aurel's avatar Aurel

get default value for listbox limit if no selection found

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28035 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0493ddd7
......@@ -74,8 +74,8 @@ node = context.getBaobabSource()\n
destination_payment = request.get(\'destination_payment\', None)\n
\n
# retrieve listbox limit\n
nb_lines = int(kw.get(\'list_lines\'))\n
limit_start = int(kw.get(\'list_start\'))\n
nb_lines = int(kw.get(\'list_lines\', 20))\n
limit_start = int(kw.get(\'list_start\', 0))\n
limit = limit_start, nb_lines\n
\n
simulation_state = None\n
......
428
\ No newline at end of file
430
\ No newline at end of file
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