Fix for hidden file data field.

We were processing a field that didn't have a value.
Ticket 408
This commit is contained in:
mike cullerton 2021-08-11 16:43:50 -04:00
parent be96ed5cda
commit d07bac27ca
1 changed files with 1 additions and 1 deletions

View File

@ -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'])