workflows: fix selection of forms presented by resubmit in frontoffice (#21148)
This commit is contained in:
parent
0f60f7b475
commit
3af195cbf5
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue