checking for "falsy" lists in python will return false if the list is empty -- but we want to clear out the columns and filters if they are empty lists.

This commit is contained in:
Dan 2023-03-20 17:47:52 -04:00
parent d9927506eb
commit f9a7b3cb71
1 changed files with 2 additions and 2 deletions

View File

@ -455,9 +455,9 @@ class ProcessInstanceReportService:
instance_metadata_aliases = {}
stock_columns = ProcessInstanceReportService.get_column_names_for_model(ProcessInstanceModel)
if report_filter.report_column_list:
if isinstance(report_filter.report_column_list, list):
process_instance_report.report_metadata["columns"] = report_filter.report_column_list
if report_filter.report_filter_by_list:
if isinstance(report_filter.report_filter_by_list, list):
process_instance_report.report_metadata["filter_by"] = report_filter.report_filter_by_list
for column in process_instance_report.report_metadata["columns"]: