From 13fadaadb399956ff6cd5bc99959ec904aaab678 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com> Date: Tue, 20 Dec 2005 09:52:48 +0000 Subject: [PATCH] if lines number is 0, render the listbox on one page only git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4784 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Form/ListBox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ERP5Form/ListBox.py b/product/ERP5Form/ListBox.py index 9e2a66b15b..779c5d27b6 100755 --- a/product/ERP5Form/ListBox.py +++ b/product/ERP5Form/ListBox.py @@ -1105,7 +1105,7 @@ class ListBoxWidget(Widget.Widget): total_size = 0 for s in report_sections: total_size += s[4] - if render_format == 'list': + if render_format == 'list' or lines == 0: end = total_size total_pages = 1 current_page = 0 -- 2.30.9