Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract function to create email activity when sending an email to contact #15133

Merged
merged 1 commit into from
Aug 25, 2019

Conversation

mattwire
Copy link
Contributor

Overview

Extract function that creates an email activity.

Background: I've had a number of requests to save the contents of an email after tokens have been parsed but the way it currently works is it saves a single activity pre-parsing and then creates activity contacts to link it to multiple contacts. This is a more efficient use of the database but a lot less friendly to the end-user admin who can't see what was actually sent to the contact. Note that this PR makes no changes - it just extracts the function that creates the activity so we can consider further refactoring.

Before

Create email activity embedded in main sendMessage function.

After

Create email activity extracted to it's own function.

Technical Details

There should be no functional change with this PR, just simplified/improved code.

Comments

@civibot
Copy link

civibot bot commented Aug 25, 2019

(Standard links)

@civibot civibot bot added the master label Aug 25, 2019
@mattwire mattwire force-pushed the activityemail_extract branch from c464890 to 3459bb8 Compare August 25, 2019 10:11
@eileenmcnaughton
Copy link
Contributor

I worked through this extraction & was able to reach the same result - merging

@eileenmcnaughton eileenmcnaughton merged commit 6426fca into civicrm:master Aug 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants