-
-
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
Add participant tokens to pdf task #21695
Conversation
(Standard links)
|
8b46a40
to
8683eaf
Compare
Fatal error: Cannot make non static method CRM_Core_Form_Task::getContactIds() static in class CRM_Contact_Form_Task in /home/jenkins/bknix-dfl/build/core-21695-3no2/web/sites/all/modules/civicrm/CRM/Contact/Form/Task.php on line 21 |
8683eaf
to
879153c
Compare
d74fa78
to
3264a32
Compare
@eileenmcnaughton needs rebase |
3264a32
to
b285aef
Compare
This PR is the last in the 'pdf tokens' strand of work - looking for someone to test so we can get it merged - maybe @magnolia61 ? |
I am glad to try and get this one tested as well. Probably the cause is in my setup somewhere but I get |
@magnolia61 that's not good - can you past your message template text in here & I'll try it too |
|
This error only happens when I include the |
@magnolia61 - I'll have to recheck this -will try to put something up after dinner |
This simplifies the code to 'listtokens' across most of the pdf & email classes. The case tokens are a bit of a hold out as ideally we would have one function on CRM_Case_Form_Task which email & pdf would use but we are still getting to that point - see civicrm#21688
b285aef
to
fb994be
Compare
@magnolia61 I think I found it |
fb994be
to
dc7176c
Compare
@magnolia61 I think that last update might fix the event tokens |
They still render empty with me... |
dc7176c
to
c32592e
Compare
@magnolia61 looks like I had a change locally that I thought was extraneous - but wasn't - just pushed it in |
Bingo! that was it. Now also rendering event core and custom tokens (only issue now is the empty custom date field anomaly listed here: https://lab.civicrm.org/dev/core/-/issues/2891 but that is not pdf creation specific) |
Thanks @magnolia61 - hopefully if tests pass this time this will be mergeable (@colemanw ) |
@magnolia61 I think I found the fix for your date token issue - I've pushed a fix in + a test (cross fingers this doesn't send me down another round of test-whackamole :-) |
You did it. Empty custom date fields do not mess up the other tokens anymore |
5d2bcbf
to
2a7cae6
Compare
@magnolia61 Yay - depending how this goes with getting merged & the other ones on the path (#21706 #21705 & #21688 & #21676) I might have a go at squeezing in participant tokens for email before the rc is cut - there is a bit of a gotcha there though https://lab.civicrm.org/dev/core/-/issues/2862 |
Test passed ✅ |
Merging based on review from @magnolia61 |
yay - thanks for your work on this @magnolia61 |
Overview
Add participant tokens to pdf task
Before
Only contact tokens available in pdf letter task
After
contact, domain, participant tokens available
Technical Details
I've got this working - but I'm gonna try to break it down a bit into some more PRs just to convince myself all the parts are correct.
Comments
@demeritcowboy this is on the pdf side - but the email side would wind up similar with the only difference being that I think on the email side we would have to check for enitty -specific tokens & if none then group by the contact id - ie 2 emails for a 2 contributions doesn't make sense if all the fields are identical.