Fix for hidden file data field.
We were processing a field that didn't have a value. Ticket 408
This commit is contained in:
parent
be96ed5cda
commit
d07bac27ca
|
@ -312,7 +312,7 @@ class WorkflowService(object):
|
||||||
data = {}
|
data = {}
|
||||||
if field.has_property(Task.FIELD_PROP_FILE_DATA) and \
|
if field.has_property(Task.FIELD_PROP_FILE_DATA) and \
|
||||||
field.get_property(Task.FIELD_PROP_FILE_DATA) in 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"]
|
file_id = data[field.get_property(Task.FIELD_PROP_FILE_DATA)]["id"]
|
||||||
if field.type == 'enum':
|
if field.type == 'enum':
|
||||||
data_args = (field.id, data[field.id]['label'])
|
data_args = (field.id, data[field.id]['label'])
|
||||||
|
|
Loading…
Reference in New Issue