From d07bac27cad4c65364fd9be71ec9a6a40f28b447 Mon Sep 17 00:00:00 2001 From: mike cullerton Date: Wed, 11 Aug 2021 16:43:50 -0400 Subject: [PATCH] Fix for hidden file data field. We were processing a field that didn't have a value. Ticket 408 --- crc/services/workflow_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crc/services/workflow_service.py b/crc/services/workflow_service.py index 83fda52a..48325ffa 100644 --- a/crc/services/workflow_service.py +++ b/crc/services/workflow_service.py @@ -312,7 +312,7 @@ class WorkflowService(object): data = {} if field.has_property(Task.FIELD_PROP_FILE_DATA) and \ field.get_property(Task.FIELD_PROP_FILE_DATA) in data and \ - field.id in data: + field.id in data and data[field.id]: file_id = data[field.get_property(Task.FIELD_PROP_FILE_DATA)]["id"] if field.type == 'enum': data_args = (field.id, data[field.id]['label'])