mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-01-14 12:14:46 +00:00
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:
parent
c42c4ff391
commit
64cb6f3257
@ -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"]:
|
||||
|
Loading…
x
Reference in New Issue
Block a user