Extra space before and after variable links in email marketing templates #4233

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

Originally created by @jgramp on GitHub (Mar 1, 2020).

Issue

When you insert a variable, the links often include an extra space before and after the text, even though these don't exist in the variable name. They need to be manually deleted, otherwise the links look this this variable_link in the email, with an extra linked space before and after the text.

Expected Behavior

The link should have no spaces surrounding the variable text when entered into the template.

Actual Behavior

When inserted into the email marketing template, the link text has a space before and after it.

Possible Fix

Find out where in the code spaces are being introduced into the text of the link and remove them.

Steps to Reproduce

  1. Edit an email marketing template.
  2. Insert a variable.
  3. Check the template and more often than not, the link will include a space before and after the link text, which needs to be manually deleted.

Context

Low priority. Annoying to remedy each time, but a low priority.

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 (Mar 1, 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 --> <!--- Ensure that all code ``` is surrounded ``` by triple back quotes. This can also be done over multiple lines --> When you insert a variable, the links often include an extra space before and after the text, even though these don't exist in the variable name. They need to be manually deleted, otherwise the links look this this _variable_link_ in the email, with an extra linked space before and after the text. #### Expected Behavior <!--- Tell us what should happen --> The link should have no spaces surrounding the variable text when entered into the template. #### Actual Behavior <!--- Tell us what happens instead --> <!--- Also please check relevant logs (suitecrm.log, php error.log etc.) --> When inserted into the email marketing template, the link text has a space before and after it. #### Possible Fix <!--- Not obligatory, but suggest a fix or reason for the bug --> Find out where in the code spaces are being introduced into the text of the link and remove them. #### 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. Edit an email marketing template. 2. Insert a variable. 3. Check the template and more often than not, the link will include a space before and after the link text, which needs to be manually deleted. #### 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 --> Low priority. Annoying to remedy each time, but a low priority. #### 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
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#4233
No description provided.