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

Get title for event tell a friend mail #12699

Merged

Conversation

chriscant
Copy link
Contributor

@chriscant chriscant commented Aug 20, 2018

Overview

When using the Tell-a-Friend by mail option I found that the event title wasn't appearing in the mail subject.

See Issue https://lab.civicrm.org/dev/core/issues/344

Before

Sent mail has a title like: "Jo Bloggs wants you to know about"
ie without the event title appended

After

Sent mail has a title like: "Jo Bloggs wants you to know about Special Training Day"
ie with event title

Technical Details

The added code simply retrieves the title in the event case.

The code unnecessarily tries to get the contribution details first and then, if an event, gets the event info. Ideally the code would switch on $pcomponent. However my PR contains the simplest fix.

Comments

Tested on 5.4.0 in WordPress

@civicrm-builder
Copy link

Can one of the admins verify this patch?

@civibot
Copy link

civibot bot commented Aug 20, 2018

(Standard links)

@seamuslee001
Copy link
Contributor

Jenkins ok to test

@eileenmcnaughton
Copy link
Contributor

This seems safe enough & only appears to affect one form - merging

@eileenmcnaughton eileenmcnaughton merged commit 005a837 into civicrm:master Aug 27, 2018
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.

4 participants