Extended modules Email Template variables #10355
Labels
Area: Emails
Issues & PRs related to all things regarding emails & email module
Priority:Important
Issues & PRs that are important; broken functions, errors - there are workarounds
Severity: Moderate
Key function failed, but no or little impact
Status:Fix Proposed
A issue that has a PR related to it that provides a possible resolution
Type: Bug
Bugs within the core SuiteCRM codebase
Issue
Modules that are extended in the custom folder, e.g. AOS_Quotes.php, are not correctly replacing variables based on the variables available in the Email Templates module. This is due to an extended module using a different beanList name(e.g. customAOS_Quotes) and the template parser using that beanList name as the key for the variables.
Expected Behavior
Extended modules should still be able to use the basic variable options in the email template editor
Actual Behavior
The basic variables aren't parsed.
Possible Fix
use the $bean->table_name as a key for template_parser, rather than the name of the module in the $beanList global array.
Steps to Reproduce
Your Environment
The text was updated successfully, but these errors were encountered: