Allow data from read-only fields to persist in task_data
This commit is contained in:
parent
620b9a5188
commit
07f3d2c2ee
|
@ -739,10 +739,7 @@ class WorkflowService(object):
|
||||||
|
|
||||||
if hasattr(task.task_spec, 'form'):
|
if hasattr(task.task_spec, 'form'):
|
||||||
for field in task.task_spec.form.fields:
|
for field in task.task_spec.form.fields:
|
||||||
if field.has_property(Task.FIELD_PROP_READ_ONLY) and \
|
if field.has_property(Task.FIELD_PROP_REPEAT):
|
||||||
field.get_property(Task.FIELD_PROP_READ_ONLY).lower().strip() == "true":
|
|
||||||
continue # Don't add read-only data
|
|
||||||
elif field.has_property(Task.FIELD_PROP_REPEAT):
|
|
||||||
group = field.get_property(Task.FIELD_PROP_REPEAT)
|
group = field.get_property(Task.FIELD_PROP_REPEAT)
|
||||||
if group in latest_data:
|
if group in latest_data:
|
||||||
data[group] = latest_data[group]
|
data[group] = latest_data[group]
|
||||||
|
|
Loading…
Reference in New Issue