Sending Emails Using The Email Activity Form Does Not Replace Case Tokens
Overview
The Activity Email Form at civicrm/activity/email/add
accepts the caseid parameter which allows the case tokens to be available for the Email form. However these case tokens does not get replaced with the actual case values for these tokens and the sent email contain these tokens in the raw form without being replaced.
Reproduction steps
- Add a new Email activity for a case using the URL:
civicrm/activity/email/add?action=add&caseid=18&atype=3&reset=1&cid=2
For valid contact Id and case Id. - Add the email subject and body and use case tokens in the subject and body of the email.
- Send the email
Current behaviour
The Email gets sent but the case tokens does not get replaced
Expected behaviour
When adding an email activity for a case and the email gets sent, the case tokens added in the email should be replaced with the correct case values for the given Case ID.