mirror of
https://github.com/sartography/cr-connect-workflow.git
synced 2025-02-23 13:18:35 +00:00
Fixes problem with initializing some task data fields
we had a problem where sometimes, task data gets some values set in its fields to None, which conflicts with default values. this fixes that
This commit is contained in:
parent
23fa28bc23
commit
962cf7c32c
@ -380,7 +380,8 @@ class WorkflowService(object):
|
||||
@staticmethod
|
||||
def evaluate_property(property_name, field, task):
|
||||
expression = field.get_property(property_name)
|
||||
data = task.data
|
||||
|
||||
data = copy.deepcopy(task.data)
|
||||
# If there's a field key with no initial value, give it one (None)
|
||||
for field in task.task_spec.form.fields:
|
||||
if field.id not in data:
|
||||
|
Loading…
x
Reference in New Issue
Block a user