-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
dev/drupal#72 Ensure front end profile title is used in event confirmation screens & emails #14960
Conversation
(Standard links)
|
0c4e529
to
5d8c62c
Compare
@jusfreeman you got any interest in this? |
@seamuslee001 yes, thanks |
I should note I'm not actually personally vested in this - I was looking at test cover in order to build that up before fixing a more complex issue (which probably will require test build up & code cleanup before I could write a patch that I could reasonably expect someone else to review). Fixing trivial bugs is usually a good way to add test cover & do relevant function extraction - mostly because it's easier to find a reviewer if people get something they want out of it. I'm going to chip away at event cleanup for a little bit with a goal to fixing the payment processor flow (at the moment multiple participants only works in a bad way) - generally my chip away process is to put up a PR in an area & then once that is merged do another one - so the speed I work at is moderated by reviewer interest. |
CRM/Event/BAO/Event.php
Outdated
break; | ||
} | ||
if (!empty($fields)) { | ||
$profile = civicrm_api3('UFGroup', 'getsingle', ['id' => $gid, ['return' => ['title', 'frontend_title']]]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eileenmcnaughton any reason not to use CRM_UF_BAO_UFGroup::getFrontEndTitle()
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because it didn't exist when I wrote those lines....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would probably be good to tidy this up before merging but otherwise looks good to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok done
(CiviCRM Review Template WORD-1.2)
|
5d8c62c
to
4398bca
Compare
Added MOP |
Happy to test this, but I need some guidance on how to test. Since I could not find any profile titles being output at all in the event registration confirmation emails. |
in testing I was seeing the custom pre & post profile blocks had titles. Maybe test the rc since that gets cut tomorroe & this has mop |
note this incorporates #14958 also - my money says that contribution pages have this bug too... |
4398bca
to
e1a29ba
Compare
Ah yes... |
Overview
Fixes a bug whereby the front end profile title is not used in event confirm & thankyou screens & confirmation emails
Before
Register ...
BUT
Also in confirmation emails
After
Technical Details
Incorporates #14958
Comments
https://lab.civicrm.org/dev/drupal/issues/72