Accounts & Contacts variables are not being parsed/populated by Email Template #5944
Labels
Area: Campaigns
Issues & PRs related to all things regarding campaigns
Priority:Important
Issues & PRs that are important; broken functions, errors - there are workarounds
Type:Bug
Bugs within the core SuiteCRM codebase
Milestone
I have created a target list containing contacts. Then set an email campaign which includes this target list. The email template used in this campaign is having this at the top of body text:
Issue
You can see that the template includes variable or custom fields from both contacts and accounts modules. When the campaign is being triggered by the schedular, the following errors:
`Thu May 24 08:25:48 2018 [229486][1][FATAL] Variable $contact_first_name could not be parsed, because attribute first_name does not set in contact bean
Thu May 24 08:25:48 2018 [229486][1][FATAL] Variable $contact_middle_name_c could not be parsed, because attribute middle_name_c does not set in contact bean
Thu May 24 08:25:48 2018 [229486][1][FATAL] Variable $account_name could not be parsed, because attribute name does not set in account bean
Thu May 24 08:25:48 2018 [229486][1][FATAL] Variable $account_billing_address_city could not be parsed, because attribute billing_address_city does not set in account bean
Thu May 24 08:25:48 2018 [229486][1][FATAL] Variable $account_billing_address_state could not be parsed, because attribute billing_address_state does not set in account bean
Thu May 24 08:25:48 2018 [229486][1][FATAL] Variable $account_name could not be parsed, because attribute name does not set in account bean
Thu May 24 08:25:48 2018 [229486][1][FATAL] Variable $account_billing_address_city could not be parsed, because attribute billing_address_city does not set in account bean
Thu May 24 08:25:48 2018 [229486][1][FATAL] Variable $account_billing_address_state could not be parsed, because attribute billing_address_state does not set in account bean
Expected Behavior
I hope these variables should have populated properly.
Actual Behavior
the one space after each 'contacts' variable is being considered as a character  and causing error/problem. However, the 'accounts' variables are not being parsed
Possible Fix
Steps to Reproduce
Context
Your Environment
The text was updated successfully, but these errors were encountered: