IDEMPIERE-4833 : Impossible to display a report based on a table when no parameter (#721)

This commit is contained in:
Nicolas Micoud 2021-06-16 09:30:09 +02:00 committed by GitHub
parent 756cf807f2
commit 715bf4f856
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1888,7 +1888,7 @@ public class LayoutEngine implements Pageable, Printable, Doc
*/ */
private PrintElement layoutParameter () private PrintElement layoutParameter ()
{ {
if (m_query == null || !m_query.isActive()) if (m_query == null || !m_query.isActive() || (m_query.getReportProcessQuery() != null && !m_query.getReportProcessQuery().isActive()))
return null; return null;
// //
ParameterElement pe = new ParameterElement(m_query, m_printCtx, m_format.getTableFormat()); ParameterElement pe = new ParameterElement(m_query, m_printCtx, m_format.getTableFormat());