Suitecrm: Salutation variable in campaigns displays item name instead of value 7.10.4

Created on 23 Apr 2018  路  20Comments  路  Source: salesagility/SuiteCRM

After upgrading to 7.10.4 the variable $contact_salutation links to the the internal item name in the dropdown menu, not the actual value (display label). This only happens with campaigns. When using the same template with the internal mail client, $contact_salutation correctly shows the value on the receiver side.

Expected Behavior

Campaign receivers should see the value for the variable $contact_salutation (e.g. "Herr").

Actual Behavior

Campaign receivers see the item name for the variable $contact_salutation (e.g. "Hr.").

Steps to Reproduce

  1. In the contact_salutation dropdown menu, there are values not identical to the internal item name (e.g. Item Name = Hr, Display Name = Herr)
  2. Create a template with the $contact_salutation variable
  3. Use the template within a campaign
  4. The receiver will see the Item Name, not the value

Your Environment

  • SuiteCRM Version used: 7.10.4
  • Browser name and version: Safari Version 11.0.2 (13604.4.7.1.3), Chrome Version 66.0.3359.117 (Official Build) (64-Bit)
  • Environment name and version: MariaDB, PHP 7.1.16 FastCGI
  • Operating System and version: Debian 9.4
Campaigns Important Bug

All 20 comments

What kinds of people do you have in the Target List used in the Campaign? Are they Contacts, or another kind (Leads, Targets, Accounts, Users)?

Contacts

Maybe this is a duplicate of #3321

If so, then the scope of this bug is larger (thus deserving the Medium priority label that other issue has).

No, this is not a duplicate of #3321. It is not a matter of a variable not being replaced at all, but rather being replaced wrong (internal name instead of display name when linking to dropdown list values). Unfortunately I have exactly the same problem as viking68, and this bug makes it impossible to send out campaign mails for us.

EDIT: I've done some more testing, the bug is present with variables/values from all dropdown lists. Shouldn't this at least be medium priority?

Is it a duplicate of #5944 ? If so, it should be fixed in #5964

Can you try the fix?

Good morning @pgorod, thank you for your reply. Indeed, #5964 sounds like the same or at least similar issue. Since I'm new to github, could you tell me how to try the fix? Do I need to exchange the EmailTemplateParser.php in our installation, and where exactly can I find the fixed file?

The fixed file is at "Files changed". Click on "View". You can copy it and paste/replace it into your installation. You might set write permissions before.

#5964 fix did not solve the problem for me.

@viking68 thank you for testing. Maybe @zoltankocsardi is able to help finding a fix if the bug is somehow related to #5944

Just retested with 7.10.6 - bug persists.

Hello everyone, any news on this bug? I couldn't find any corresponding fixes in the 7.10.7 release notes, so does it still persist? Sending out mailings in 7.10.6 is nearly impossible, why is the issue labelled "low priority"?

7.10.9 - Bug persists. Is it just me and @viking68 having these problems? As a workaround we've created normal text field with the complete salutation, but we're still waiting for a proper fix.

I heard on the forums that this happens with every dropdown-style field, where the value needs to be translated to a string. If somebody can check this we could at least make this Issue a higher priority.

I can confirm this happens with every dropdown-style field (as indicated in #6345)

Please give this medium priority at least.

Yes for me same all variables doesnt work un email like quote_name etc
On last version

for me its a hight priority lol

Hi @micker, it's being looked at :). You can expect a fix soon.

+10000 thanks

Hi guys, I've created a fix here: #6466. Please let me know if you encounter any issues.

hello thtat solve all variable in email ??

Was this page helpful?
0 / 5 - 0 ratings