cuba-platform / reports

CUBA Reports Addon
https://www.cuba-platform.com/
Apache License 2.0
9 stars 4 forks source link

IllegalArgumentException when TablePrintFormAction is executed for filtered table #170

Closed glebfox closed 5 years ago

glebfox commented 5 years ago

Environment

Description of the bug or enhancement

sample-sales.zip Report for entity Order.zip

. Import Report for entity Order . Open Order Browse . Filter records, i.e. by customer . Do not select any entity and click the Report button

Report is generated

com.haulmont.reports.exception.ReportingException: java.lang.IllegalArgumentException: You have attempted to set a parameter value using a name of filter_customer90091 that does not exist in the query string select e from sales_Order e.
    at com.haulmont.reports.PrototypesLoader.loadData(PrototypesLoader.java:93)
    at com.haulmont.reports.ReportingBean.loadDataForParameterPrototype(ReportingBean.java:385)
    at com.haulmont.reports.ReportingBean.createReportDocument(ReportingBean.java:335)
    at com.haulmont.reports.ReportingBean.createReportDocument(ReportingBean.java:315)
    at com.haulmont.reports.ReportingBean.createReport(ReportingBean.java:209)
    at com.haulmont.reports.ReportServiceBean.createReport(ReportServiceBean.java:46)
soraksh commented 5 years ago

Same problem as #156. Should be fixed there.