mirror of
https://github.com/SuiteCRM/SuiteCRM.git
synced 2026-03-02 19:16:58 -05:00
WOF action sendEmail does not replace float custom variables with values (parse_template_bean function) #5085
Labels
No labels
Area: API
Area: Campaigns
Area: Cases
Area: Clean Up
Area: Clean Up: Performance
Area: Dashlets
Area: Databases
Area: Developer Tools
Area: Elasticsearch
Area: Elasticsearch
Area: Emails
Area: Emails:Campaigns
Area: Emails:Cases
Area: Emails:Compose
Area: Emails:Config
Area: Emails:Templates
Area: Environment
Area: Installation
Area: Language
Area: Mobile
Area: Module
Area: PDFs
Area: PHP8
Area: Reports
Area: Studio
Area: Styling
Area: Upgrading
Area: Workflow
Area:Activity Stream
Area:Calls
Area:Import
Area:Projects
Area:Search
Area:Surveys
Area:Themes
Area:Users
Branch:Hotfix
Good First Issue
Hacktoberfest
Help Wanted
PR:Community Contribution
PR:Type:Enhancement
Priority:Critical
Priority:Important
Priority:Moderate
Severity: Major
Severity: Minor
Severity: Moderate
Status: Requires Code Review
Status: Requires Updates
Status: Stale
Status: Team Investigating
Status:Assessed
Status:Fix Proposed
Status:Needs Assessed
Status:Requires Automated Tests
Type: Bug
Type:Deprecated
Type:Discussion
Type:Duplicate
Type:Invalid
Type:Question
Type:Suggestion
Type:Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/SuiteCRM-SuiteCRM#5085
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gody01 on GitHub (Sep 11, 2023).
Issue
If You have custom field of type float in Emails sent from Workflow there is no substitution for value in EmailTemplate.
Expected Behavior
If You have macro for custom variable (of type float) in sent Email value should be displayed. (It works for string, url type but not for float).
Actual Behavior
Place for the variable is empty.
Possible Fix
In file: modules/AOS_PDF_Templates/templateParser.php there is code to make variables of type 'int' work but not for type 'float'.
Following patch fixes this for us, but I suspect that for type decimal could also be issue...
BTW,
just wondering why /srv/www/vhosts/sugar.agenda.si/modules/AOW_Actions/actions/templateParser.php extends template_parser from AOS_PDF_Templates and not use EmailTemplate Bean ?
Steps to Reproduce
Context
While automating Opportunity workflows vital data is not sent to appropriate responsible people.
I think this should be high priority as Workflow are only partialy usable and vital data may be missing in important emails.
Your Environment
@gody01 commented on GitHub (Sep 11, 2023):
This refined patch adds support also for decimal type and use Formating of decimal number_separators:
@serhiisamko091184 commented on GitHub (Mar 4, 2024):
Hello @gody01,
thanks for raising the issue,
I'd like to check with you about my replication steps, as haven't got the result yet. I'm using SuiteCRM version 7.14.3.
I've set the workflow:

Now I create an Opportunity record:
The field is present.
Would you be so kind:
to check am I missing something? 'If You have macro for custom variable' - I'm not sure I'm following.
to share what values you have set for the users:
"Currency Significant Digits"
"1000s Seperator"
"Decimal Symbol"
Thanks in advance for your reply!
Regards,
Serhii
@serhiisamko091184 commented on GitHub (Oct 7, 2024):
Hello @gody01,
The issue has been marked as stale because there has been no recent activity. It will be closed if no further activity occurs.
Thanks for your contributions.
Regards,
Serhii