formdata: only ignore form_var_* from workflow data (#49463)
gitea-wip/wcs/pipeline/head Build started... Details
gitea/wcs/pipeline/head Build queued... Details

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

View File

@ -862,9 +862,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