[Erp5-report] r28305 - /erp5/trunk/products/ERP5Form/ListBox.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Aug 6 18:10:21 CEST 2009


Author: romain
Date: Thu Aug  6 18:10:21 2009
New Revision: 28305

URL: http://svn.erp5.org?rev=28305&view=rev
Log:
Do not call getReportSectionList if hide_rows_on_no_search_criterion is used.

Modified:
    erp5/trunk/products/ERP5Form/ListBox.py

Modified: erp5/trunk/products/ERP5Form/ListBox.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/ListBox.py?rev=28305&r1=28304&r2=28305&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/ListBox.py [utf8] (original)
+++ erp5/trunk/products/ERP5Form/ListBox.py [utf8] Thu Aug  6 18:10:21 2009
@@ -1835,7 +1835,10 @@
     """
     start = self.getLineStart()
     max_lines = self.getMaxLineNumber()
-    report_section_list = self.getReportSectionList()
+    if self.isHideRowsOnNoSearchCriterion():
+      report_section_list = []
+    else:
+      report_section_list = self.getReportSectionList()
     param_dict = self.getParamDict()
 
     # Set the total number of objects.




More information about the Erp5-report mailing list