workflows: add compatibility substitutions for after & new

This commit is contained in:
Frédéric Péters 2012-08-16 13:29:56 +02:00
parent 9268ccaec6
commit decdb1ecac
1 changed files with 2 additions and 0 deletions

View File

@ -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: