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

Remove case token listing from contact email task #21787

Merged
merged 1 commit into from
Oct 11, 2021

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Remove case token listing from contact email task

Before

Contact email task calls the legacy function

After

Contact email task calls the token processor (exposes domain tokens)

Technical Details

The only reason not to call the token processor to get these is if you are trying to filter the tokens by 'case_type_id' - which should now only apply to the case email task

Comments

@demeritcowboy this was a side-track on my path to figure out the rows issue

@civibot
Copy link

civibot bot commented Oct 11, 2021

(Standard links)

@civibot civibot bot added the master label Oct 11, 2021
@totten
Copy link
Member

totten commented Oct 11, 2021

For r-run, I did a few scenarios:

Use-Case Before Patch After Patch
(1) "View Contact => Send Email" No case tokens No case tokens
(2) "Find Contacts => Select All => Email - send now" No case tokens No case tokens
(3) "Manage Case => Email (icon)" Case tokens present Case tokens present

It appears to me that they behave the same. I pulled up a debugger and confirmed that (3) in fact goes through CRM/Case/Form/Task/Email.php (which didn't exist at the time of #13473). So in effect that snippet has been successfully relocated from CRM/Contact/Form/Task/Email.php to CRM/Case/Form/Task/Email.php

It's possible that the change means the contact-flavored screen will get a fuller list of tokens by way of TokenProcessor, which sounds good.

tldr: Change looks fine to me.

@totten totten added the merge ready PR will be merged after a few days if there are no objections label Oct 11, 2021
@totten totten merged commit b7eaee6 into civicrm:master Oct 11, 2021
@eileenmcnaughton eileenmcnaughton deleted the case_email branch October 11, 2021 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
master merge ready PR will be merged after a few days if there are no objections
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants