workflows: keep compatibility dict intact in display message action (#29951)

This commit is contained in:
Frédéric Péters 2019-04-16 10:48:49 +02:00
parent 669140ab01
commit a481797540
1 changed files with 1 additions and 2 deletions

View File

@ -2575,8 +2575,7 @@ class DisplayMessageWorkflowStatusItem(WorkflowStatusItem):
if not (self.message and self.position == position and self.is_for_current_user(filled)):
return ''
dict = {}
dict.update(get_publisher().substitutions.get_context_variables())
dict = copy.copy(get_publisher().substitutions.get_context_variables())
dict['date'] = misc.localstrftime(filled.receipt_time)
dict['number'] = filled.id
handling_role = filled.get_handling_role()