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

Convert to Field on email Trait to entity reference #17397

Closed
wants to merge 4 commits into from

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented May 26, 2020

Overview

This changes the to field when doing a stand-alone email from a weird java-scripty field to an entity reference field

Before

Lots of custom js fo the to field

After

Entity reference, like with cc & bcc fields

Technical Details

Comments

@civibot
Copy link

civibot bot commented May 26, 2020

(Standard links)

@eileenmcnaughton eileenmcnaughton changed the title [WIP] Convert to Field on email Trait to entity reference Convert to Field on email Trait to entity reference Jun 8, 2020
@eileenmcnaughton
Copy link
Contributor Author

@colemanw I think this is the commit for the last entity ref field on that form now. I have had a lot of preliminaries merged to get to a somewhat readable switch over

@eileenmcnaughton
Copy link
Contributor Author

@demeritcowboy any chance you could review this for me - it could do with your 'eye-for-gotchas' - it replaces the 'to field' on all the screens for sending emails to one or more contacts (but not civimails)

@demeritcowboy
Copy link
Contributor

Sure, can look tomorrow.

@eileenmcnaughton
Copy link
Contributor Author

thanks!

@demeritcowboy
Copy link
Contributor

demeritcowboy commented Jul 14, 2020

One thing is that if you're on a contact view page and from the actions dropdown choose Send Email, it no longer prepopulates the To field. It's not immediately obvious why. Ditto if you initiate an email from Manage Case in the roles section.

@eileenmcnaughton
Copy link
Contributor Author

@demeritcowboy thanks - I'll check it out

@demeritcowboy
Copy link
Contributor

Oh actually looking at it now afresh it's probably toContact in the template.

@eileenmcnaughton
Copy link
Contributor Author

@demeritcowboy yes - it looks like it needs setDefaultValues - the code is so awful that coming back to it again I can't make much sense of it :-(

I put up this minor simplification #17873 for now

@eileenmcnaughton
Copy link
Contributor Author

I'm going to close this for now - per comments on #17873

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

Successfully merging this pull request may close these issues.

2 participants