admin: expose all workflow status when remapping (#23573)

This commit is contained in:
Frédéric Péters 2019-02-11 10:15:09 +01:00
parent 6a9ad35a40
commit 9d04ffd779
1 changed files with 1 additions and 1 deletions

View File

@ -793,7 +793,7 @@ class FormDefPage(Directory):
new_workflow = Workflow.get(get_request().form.get('new'))
if get_request().get_method() == 'GET':
get_request().form = None # do not be considered submitted already
new_workflow_status = [(x.id, x.name) for x in new_workflow.get_waitpoint_status()]
new_workflow_status = [(x.id, x.name) for x in new_workflow.possible_status]
form = Form(enctype='multipart/form-data')
for status in self.formdef.workflow.possible_status:
default = status.id