Take this garbage out

I can say that because I originally wrote that garbage
This commit is contained in:
alicia pritchett 2021-12-10 12:10:08 -05:00
parent 962cf7c32c
commit f9fbb32641
1 changed files with 1 additions and 5 deletions

View File

@ -381,11 +381,7 @@ class WorkflowService(object):
def evaluate_property(property_name, field, task):
expression = field.get_property(property_name)
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:
data[field.id] = None
data = task.data
if field.has_property(Task.FIELD_PROP_REPEAT):
# Then you must evaluate the expression based on the data within the group, if that data exists.
# There may not be data available in the group, if no groups where added