workflows: attach workflow form identifier to the form object (#22603)

This commit is contained in:
Frédéric Péters 2018-03-18 16:15:19 +01:00
parent c7742a156f
commit 6b001ecd5e
1 changed files with 4 additions and 0 deletions

View File

@ -149,6 +149,10 @@ class FormWorkflowStatusItem(WorkflowStatusItem):
self.formdef.add_fields_to_form(form)
form.add_submit('submit', _('Submit'))
# put varname in a form attribute so it can be used in templates to
# identify the form.
form.varname = self.varname
formdata.feed_session()
req = get_request()