During validation, options were not being handled correctly for certain types of lookups.

This commit is contained in:
Dan 2021-11-17 13:38:41 -05:00
parent 8e2e3519f6
commit 7b02f46403
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ logging_config = {
"formatter": "simple",
"class": "logging.StreamHandler",
"stream": "ext://sys.stdout",
"level": "DEBUG"
"level": "INFO"
},
"file": {
"level": "INFO",

View File

@ -792,7 +792,7 @@ class WorkflowService(object):
if not hasattr(field, 'options'):
field.options = []
for d in data:
field.options.append({"id": d.value, "name": d.label, "data": d.data})
field.add_option(d.value, d.label)
elif field.has_property(Task.FIELD_PROP_DATA_NAME):
field.options = WorkflowService.get_options_from_task_data(spiff_task, field)