misc: do not create variables for undefined functions (#57200)
This commit is contained in:
parent
6b310b6ec4
commit
49cac16dad
|
@ -888,6 +888,8 @@ class FormData(StorableObject):
|
|||
workflow_roles.update(self.workflow_roles)
|
||||
|
||||
for role_type, role_id in workflow_roles.items():
|
||||
if not role_id:
|
||||
continue
|
||||
if isinstance(role_id, list):
|
||||
# only return first role
|
||||
role_id = role_id[0]
|
||||
|
|
Loading…
Reference in New Issue