Commit d9273c91 authored by Julien Muchembled's avatar Julien Muchembled

Fix type error in ERP5ReportTestCase.getReportSectionList

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43496 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 50afd269
......@@ -1154,7 +1154,7 @@ class ERP5ReportTestCase(ERP5TypeTestCase):
report_method = getattr(report, 'report_method', None)
if report_method:
return getattr(context, report_method)()
return sum([field.render()
return sum([list(field.render())
for field in report.get_fields()
if field.getRecursiveTemplateField().meta_type == 'ReportBox'],
[])
......
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