misc: ignore workflow data will conflict with the "form*" namespace (#49195)

This commit is contained in:
Frédéric Péters 2020-12-07 23:32:43 +01:00
parent d1b59fe2d5
commit 7169bd0ee9
1 changed files with 2 additions and 1 deletions

View File

@ -862,8 +862,9 @@ 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
for k, v in self.workflow_data.items():
if k[0] == '_':
if k[0] == '_' or k.startswith('form_') or k == 'form':
continue
d[k] = v
# recompute _url variable of attached files