workflows: add compatibility substitutions for after & new
This commit is contained in:
parent
9268ccaec6
commit
decdb1ecac
|
@ -916,6 +916,8 @@ def template_on_formdata(formdata, template, process=None):
|
|||
else:
|
||||
dict['comment'] = ''
|
||||
dict.update(formdata.get_as_dict())
|
||||
dict['before'] = dict.get('form_previous_status')
|
||||
dict['after'] = dict.get('form_status')
|
||||
|
||||
if process:
|
||||
for key in dict:
|
||||
|
|
Loading…
Reference in New Issue