Copying a template doesn't copy the variables #4231

Open
opened 2026-02-20 16:15:12 -05:00 by deekerman · 2 comments
Owner

Originally created by @jgramp on GitHub (Feb 29, 2020).

Issue

I would expect variables to come across when I copy a email marketing template, but if not, I would at least expect the links not to come over, as they insinnuate that the variables are there and the links will work, although they are in fact broken, due to the missing variables.

Expected Behavior

  1. Copy an email marketing template.
  2. The variables from the copied template appear in the new template.
  3. The links to the variables remain in the email text.

Actual Behavior

  1. Copy an email marketing template.
  2. The variables from the copied template DO NOT appear in the new template.
  3. The links to the variables remain in the email text.

Possible Fix

Copy across the variables into the new template.

Steps to Reproduce

  1. Copy an email marketing template.
  2. The variables from the copied template DO NOT appear in the new template.
  3. The links to the variables remain in the email text.

Context

Your Environment

Suite CRM Version 7.11.10
Sugar Version 6.5.25 (Build 344)
Chrome Version 80.0.3987.122 (Official Build) (64-bit)
MySQL, PHP 7

Originally created by @jgramp on GitHub (Feb 29, 2020). <!--- Provide a general summary of the issue in the **Title** above --> <!--- Before you open an issue, please check if a similar issue already exists or has been closed before. ---> <!--- If you have discovered a security risk please report it by emailing security@suitecrm.com. This will be delivered to the product team who handle security issues. Please don't disclose security bugs publicly until they have been handled by the security team. ---> #### Issue <!--- Provide a more detailed introduction to the issue itself, and why you consider it to be a bug --> I would expect variables to come across when I copy a email marketing template, but if not, I would at least expect the links not to come over, as they insinnuate that the variables are there and the links will work, although they are in fact broken, due to the missing variables. <!--- Ensure that all code ``` is surrounded ``` by triple back quotes. This can also be done over multiple lines --> #### Expected Behavior <!--- Tell us what should happen --> 1. Copy an email marketing template. 2. The variables from the copied template appear in the new template. 3. The links to the variables remain in the email text. #### Actual Behavior <!--- Tell us what happens instead --> <!--- Also please check relevant logs (suitecrm.log, php error.log etc.) --> 1. Copy an email marketing template. 2. The variables from the copied template DO NOT appear in the new template. 3. The links to the variables remain in the email text. #### Possible Fix <!--- Not obligatory, but suggest a fix or reason for the bug --> Copy across the variables into the new template. #### Steps to Reproduce <!--- Provide a link to a live example, or an unambiguous set of steps to --> <!--- reproduce this bug include code to reproduce, if relevant --> 1. Copy an email marketing template. 2. The variables from the copied template DO NOT appear in the new template. 3. The links to the variables remain in the email text. #### Context <!--- How has this bug affected you? What were you trying to accomplish? --> <!--- If you feel this should be a low/medium/high priority then please state so --> #### Your Environment <!--- Include as many relevant details about the environment you experienced the bug in --> Suite CRM Version 7.11.10 Sugar Version 6.5.25 (Build 344) Chrome Version 80.0.3987.122 (Official Build) (64-bit) MySQL, PHP 7
Author
Owner

@SohanTirpude commented on GitHub (Apr 1, 2020):

Hi @jgramp, @Mac-Rae, can you provide exact steps to reproduce this issue? I am not able to follow the steps you provided above. I mean exact which module to choose, which email template you chose and what exact actions you performed. I hope you won't mind me asking this question.

@SohanTirpude commented on GitHub (Apr 1, 2020): Hi @jgramp, @Mac-Rae, can you provide exact steps to reproduce this issue? I am not able to follow the steps you provided above. I mean exact which module to choose, which email template you chose and what exact actions you performed. I hope you won't mind me asking this question.
Author
Owner

@jgramp commented on GitHub (Apr 23, 2020):

Hi @ChangezKhan,

To replicate this error, log in to Suite CRM and go to:

  1. Campaigns > Create campaign > Email
  2. Name it and click Next
  3. Select the test target list (or others, or none at all) and click Next
  4. At this point any existing template you choose to use or copy behave the same way. The tracker URLs do not populate, so the links in the template are all broken.

So for example, if you copy an existing template and choose the template to copy from the Email Template drop down list and click Save. Then click on the Tracker URLs list you will see it is empty. Then if you go down to the email text and click Tools > Source code you will see the links referring to the non existent tracker items:
E.g. <a href="%7BOne%20Tracker%20Link%7D">One Tracker Link Example</a>

So when you go to test your email campaign in the later steps and in your email client you click on the links, they are all broken, because they reference non existent tracker URLs. The only way to get them working again that I have found is to manually recreate them again, one by one and then re-insert them into the email template.

@jgramp commented on GitHub (Apr 23, 2020): Hi @ChangezKhan, To replicate this error, log in to Suite CRM and go to: 1. Campaigns > Create campaign > Email 2. Name it and click Next 3. Select the test target list (or others, or none at all) and click Next 4. At this point any existing template you choose to use or copy behave the same way. The tracker URLs do not populate, so the links in the template are all broken. So for example, if you copy an existing template and choose the template to copy from the Email Template drop down list and click Save. Then click on the Tracker URLs list you will see it is empty. Then if you go down to the email text and click Tools > Source code you will see the links referring to the non existent tracker items: `E.g. <a href="%7BOne%20Tracker%20Link%7D">One Tracker Link Example</a>` So when you go to test your email campaign in the later steps and in your email client you click on the links, they are all broken, because they reference non existent tracker URLs. The only way to get them working again that I have found is to manually recreate them again, one by one and then re-insert them into the email template.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SuiteCRM-SuiteCRM#4231
No description provided.