Add substitution variables to legacy workflow
This commit is contained in:
parent
7c6685c6c6
commit
82cd801a7f
|
@ -504,6 +504,7 @@ class FormDef(StorableObject):
|
|||
'name': self.name,
|
||||
'user': formdata.user,
|
||||
}
|
||||
data.update(get_publisher().substitutions.get_context_variables())
|
||||
|
||||
emails.custom_ezt_email('new_user',
|
||||
data, submitter_email,
|
||||
|
@ -538,6 +539,7 @@ link: [url]
|
|||
'details': self.get_detailed_email_form(formdata, url),
|
||||
'name': self.name
|
||||
}
|
||||
data.update(get_publisher().substitutions.get_context_variables())
|
||||
|
||||
emails.custom_ezt_email('new_receiver',
|
||||
data, email_rcpt=None,
|
||||
|
@ -571,6 +573,7 @@ link: [url]
|
|||
'after': _(status_labels[formdata.status]),
|
||||
'user': formdata.user,
|
||||
}
|
||||
data.update(get_publisher().substitutions.get_context_variables())
|
||||
|
||||
emails.custom_ezt_email(email_key, data, submitter_email,
|
||||
replyto = from_email,
|
||||
|
@ -617,6 +620,7 @@ link: [url]
|
|||
'before': _(status_labels[old_status]),
|
||||
'after': _(status_labels[formdata.status])
|
||||
}
|
||||
data.update(get_publisher().substitutions.get_context_variables())
|
||||
|
||||
emails.custom_ezt_email(email_key, data,
|
||||
email_rcpt=None, bcc=receiver_emails,
|
||||
|
|
Loading…
Reference in New Issue