From f9fbb32641697793d390643fab1885fc9d30a3ba Mon Sep 17 00:00:00 2001 From: alicia pritchett Date: Fri, 10 Dec 2021 12:10:08 -0500 Subject: [PATCH] Take this garbage out I can say that because I originally wrote that garbage --- crc/services/workflow_service.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/crc/services/workflow_service.py b/crc/services/workflow_service.py index 03973f5e..05cb135f 100755 --- a/crc/services/workflow_service.py +++ b/crc/services/workflow_service.py @@ -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