misc: don't crash evaluating roles when formdef.workflow_roles is None (#36252)

This commit is contained in:
Frédéric Péters 2019-09-19 10:07:17 +02:00
parent 5a694524f3
commit c00234973f
1 changed files with 2 additions and 1 deletions

View File

@ -249,7 +249,8 @@ class FormDefUI(object):
r += htmltext('<td class="select"><input type="checkbox" name="select[]" ')
r += htmltext('value="%s"') % filled.id
workflow_roles = {}
workflow_roles.update(self.formdef.workflow_roles)
if self.formdef.workflow_roles:
workflow_roles.update(self.formdef.workflow_roles)
if filled.workflow_roles:
workflow_roles.update(filled.workflow_roles)
for function_key, function_value in workflow_roles.items():