Merge pull request #191 from sartography/bug/312_prospective_filters

Fixes using the "Clear" button when a prospective is saved
This commit is contained in:
Dan Funk 2023-03-20 19:18:35 -04:00 committed by GitHub
commit 012b43dd72
1 changed files with 2 additions and 2 deletions

View File

@ -455,9 +455,9 @@ class ProcessInstanceReportService:
instance_metadata_aliases = {} instance_metadata_aliases = {}
stock_columns = ProcessInstanceReportService.get_column_names_for_model(ProcessInstanceModel) 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 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 process_instance_report.report_metadata["filter_by"] = report_filter.report_filter_by_list
for column in process_instance_report.report_metadata["columns"]: for column in process_instance_report.report_metadata["columns"]: