Details
-
Type: Improvement
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.7
-
Fix Version/s: 4.7
-
Component/s: None
-
Labels:None
-
Documentation Required?:Developer Doc
-
Epic Link:
-
Funding Source:Contributed Code
Description
The functions commonCompose() and commonLetterCompose() in CRM_Mailing_BAO_Mailing duplicate a lot of code.
Those functions could probably better be merged.
These functions are also responsible for adding tokens to message field. If we wan't to add tokens to some forms those need to be updated on both places, and added in 'different' 'hardcode' way depending on the used compose function.