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

Some tokens don't work anymore on 1.9 with emailApi & pdfApi #61

Open
GuillaumeSorel opened this issue Sep 16, 2022 · 7 comments
Open

Comments

@GuillaumeSorel
Copy link

After update to 1.9 latestcurrentmembership.end and startdate don't work anymore when sent in pdf attachment but they work when a simple e-mail is sent to the recipient.
On 5.52.2 and 5.53. It's working since 4 years. I had to roll-back to 1.8 to have it working again.
(sorry for the short feedback but I'm sure about this bug)

@eileenmcnaughton
Copy link
Owner

Can you clarify what ' when sent in pdf attachment' means - what are the steps you take to send in a pdf attachment?

@GuillaumeSorel
Copy link
Author

We use the PDF API and the Email API extensions to send an e-mail that is merging an html template and attaching it.
This template uses several token such as first name, last name and the membership start and end date.
It's being used since 4 years and send thousand times but with the last version it's not working any more.

@eileenmcnaughton
Copy link
Owner

oh right - yeah that makes sense - those extensions need to declare the token schema - sticking with 1.8 until those exensions is updated makes sense.

@eileenmcnaughton
Copy link
Owner

It should work on EmailApi master as this line https://lab.civicrm.org/extensions/emailapi/-/blame/master/CRM/Emailapi/Utils/Tokens.php#L35 would make it work - I'm struggling to figure out right now if that change was in the 2.9 release or not

@GuillaumeSorel
Copy link
Author

thanks for telling. We can stay on 1.8 until it's fixed.

@eileenmcnaughton
Copy link
Owner

are you on the latest emailApi?

@eileenmcnaughton eileenmcnaughton changed the title Some tokens don't work anymore on 1.9 Some tokens don't work anymore on 1.9 with emailApi & pdfApi Sep 20, 2022
@GuillaumeSorel
Copy link
Author

are you on the latest emailApi?

yes. all extensions are up-to-date on CiviCRM 5.53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants