Commit 2f5f9a6f authored by Thomas Bernard's avatar Thomas Bernard

fix bug preventing to render correctly ListBox in case list_method is None in getReportSectionList

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8311 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d8e4f166
...@@ -1365,6 +1365,7 @@ class ListBoxRenderer: ...@@ -1365,6 +1365,7 @@ class ListBoxRenderer:
domain_tool = self.getDomainTool() domain_tool = self.getDomainTool()
report_depth = self.getReportDepth() report_depth = self.getReportDepth()
selection = self.getSelection() selection = self.getSelection()
selection_tool = self.getSelectionTool()
report_list = selection.getReportList() report_list = selection.getReportList()
stat_selection_expression = self.getStatSelectExpression() stat_selection_expression = self.getStatSelectExpression()
stat_method = self.getStatMethod() stat_method = self.getStatMethod()
...@@ -1547,8 +1548,9 @@ class ListBoxRenderer: ...@@ -1547,8 +1548,9 @@ class ListBoxRenderer:
object_list_len = object_list_len)) object_list_len = object_list_len))
else: else:
# If list_method is None, use already selected values. # If list_method is None, use already selected values.
object_list = here.portal_selections.getSelectionValueList(selection_name, object_list = selection_tool.getSelectionValueList(selection_name,
context = context, REQUEST = self.request) context = context, REQUEST = self.request)
object_list_len= len(object_list)
report_section_list.append(ReportSection(is_summary = False, report_section_list.append(ReportSection(is_summary = False,
object_list = object_list, object_list = object_list,
object_list_len = object_list_len)) object_list_len = object_list_len))
......
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