workflows: fix selection of forms presented by resubmit in frontoffice (#21148)

This commit is contained in:
Frédéric Péters 2018-01-12 13:18:14 +01:00
parent 0f60f7b475
commit 3af195cbf5
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ class ResubmitWorkflowStatusItem(WorkflowStatusItem):
if not label:
label = _('Resubmit')
if not self.formdef_slug: # user can choose appropriate form
if get_request().is_in_backoffice:
if get_request().is_in_backoffice():
list_forms = [(x.id, x.name, x.id) for x in FormDef.select(order_by='name')
if x.backoffice_submission_roles]
else: