Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SuiteCRM 7.10.18 Bulk action email variables aren't being replaced on selected template #7598

Open
cumanacr opened this issue Jul 18, 2019 · 2 comments
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

Comments

@cumanacr
Copy link
Contributor

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.

Selection-04-2019-07-18

Selection-07-2019-07-18

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:

Desktop1-08-2019-07-18

Selection-10-2019-07-18

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

  1. Go to contacts module
  2. Select a couple of contacts on the list view
  3. Go Bulk action and choose Email
  4. Select an email template with variables within the contacts module
  5. Send the email

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

  • SuiteCRM Version used: 7.10.18 LTS
  • Browser name and version: Google Chrome Version 75.0.3770.100 (Official Build) (64-bit)
  • Environment name and version
    • PHP 7.2.20-1+ubuntu18.04.1+deb.sury.org+1
    • mysql Ver 14.14 Distrib 5.7.26, for Linux (x86_64) using EditLine wrapper
  • Operating System and version (e.g Ubuntu 16.04):
    • LSB Version: core-9.20170808ubuntu1-noarch:printing-9.20170808ubuntu1-noarch:security-9.20170808ubuntu1-noarch
    • Distributor ID: neon
    • Description: KDE neon User Edition 5.16
    • Release: 18.04
    • Codename: bionic
@cameronblaikie cameronblaikie added Type:Bug Bugs within the core SuiteCRM codebase 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 labels Jul 22, 2019
@Mausino
Copy link
Contributor

Mausino commented Nov 13, 2019

@Dillon-Brown @cameronblaikie this issue make the whole email teplate module unusable... in my case after upgrade from 7.11.8 to 7.11.9 insn't working

2019-11-12_1605

@kiouly2188
Copy link

Hello,
Yes i have the same issue.
But if you click within the list view directly on a mail adress, the merging works perfectly.
The only way should be to use template without merging fields.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

4 participants