SuiteCRM 7.10.18 Bulk action email variables aren't being replaced on selected template #7598
Labels
Area: Emails
Issues & PRs related to all things regarding emails & email module
Priority:Important
Issues & PRs that are important; broken functions, errors - there are workarounds
Type:Bug
Bugs within the core SuiteCRM codebase
Issue
SuiteCRM 7.10.18 -> Contacts Module Listview -> Bulk Action Email -> Variables aren't being replaced on selected template
Expected Behavior
It should work identically to when you click on email address within the detail view on any contact when you send the email using a template from there everything works ok.
A template with a text like this:
¡Muy feliz cumpleaños $contact_first_name!
Variable is replaced correctly on the received email with:
¡Muy feliz cumpleaños Cristian!
Actual Behavior
Using bulk action email on a couple of selected records:
Using the same template:
¡Muy feliz cumpleaños $contact_first_name!
Variable isn't replaced on the received email:
¡Muy feliz cumpleaños $contact_first_name!
I also noticed that the Related to: section is empty on the bulk selection.
Extra
If you bulk action only one record 'cause YOLO and you want to save some clicks the received text is:
¡Muy feliz cumpleaños !
The variable was indeed replaced but with an empty space.
Possible Fix
Use the same method used on the detail view but sequentially on the bulk selection?
¯\_(ツ)_/¯
Steps to Reproduce
Context
I wanted to create some custom filters on the contacts module, some for testing and others for the actual work and use them to send bulk email easily for a user who creates a lot of different email templates.
Your Environment
The text was updated successfully, but these errors were encountered: