formdata: only ignore form_var_* from workflow data (#49463)

This commit is contained in:
Frédéric Péters 2020-12-14 18:02:47 +01:00
parent a8fd8136c6
commit fdebcb6aae
1 changed files with 3 additions and 2 deletions

View File

@ -863,9 +863,10 @@ class FormData(StorableObject):
# pass over workflow data to:
# - attach an extra url attribute to uploaded files
# - ignore "private" attributes
# - ignore attributes that will conflict with the "form*" namespace
# - ignore attributes that will conflict with (parts of) the
# "form" namespace
for k, v in self.workflow_data.items():
if k[0] == '_' or k.startswith('form_') or k == 'form':
if k[0] == '_' or k.startswith('form_var_') or k == 'form':
continue
d[k] = v
# recompute _url variable of attached files