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

dev/core#2907 - Fix mailing contact tokens when flexmailer is disabled #24597

Closed
wants to merge 1 commit into from
Closed

dev/core#2907 - Fix mailing contact tokens when flexmailer is disabled #24597

wants to merge 1 commit into from

Conversation

cleardesign
Copy link

Overview

This PR should fix issue 2907

Before

Having FlexMailer extension disabled when attempt to use contact tokens (ex: {contact.email_greeting_display}) in new mailing it will not work.

After

Having FlexMailer extension disabled when attempt to use contact tokens (ex: {contact.email_greeting_display}) in new mailing, tokens will be processed successfully .

Comments

I am not sure if this is the right solution as this is the first time I touch civicrm core code. Please note that the problem with missing contact tokens appear only when FlexMailer extension is disabled.
The problem is there at least since 5.43 until current version 5.53.

@civicrm-builder
Copy link

Can one of the admins verify this patch?

@civibot
Copy link

civibot bot commented Sep 23, 2022

(Standard links)

@civibot civibot bot added the master label Sep 23, 2022
@mlutfy mlutfy changed the title Issue 2907 - Fix mailing contact tokens dev/core#2907 - Fix mailing contact tokens Sep 23, 2022
@mlutfy
Copy link
Member

mlutfy commented Sep 23, 2022

add to whitelist

@mlutfy mlutfy changed the title dev/core#2907 - Fix mailing contact tokens dev/core#2907 - Fix mailing contact tokens when flexmailer is disabled Sep 23, 2022
@mlutfy
Copy link
Member

mlutfy commented Sep 23, 2022

@cleardesign Thank you for submitting a pull-request! The automated tests will run to see if it finds any issues with the patch, then a review might look at it. Ideally, if people can test the patch, that will help move things forward.

Regarding flexmailer: the aim is to replace older bits of CiviCRM code that few people dare venture into (insufficient tests, old spaghetti code, etc). Running CiviCRM without flexmailer is still supported, the aim is still to eventually delete that code and require flexmailer (I think that was on the roadmap 2 years ago, but admittedly not a top priority).

@eileenmcnaughton
Copy link
Contributor

Ah - this is the issue - https://lab.civicrm.org/dev/core/-/issues/2898 - the ideal way forwards is to decide what to do about that & then make flexmailer mandatory & remove the code you are touching here

@mlutfy
Copy link
Member

mlutfy commented Aug 18, 2023

I think we can close this now that flexmailer is required?

@mlutfy mlutfy closed this Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants