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

[REF] move all functions associated with the submit function onto the Trait #17057

Merged
merged 1 commit into from
Apr 13, 2020

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Apr 11, 2020

Overview

[REF] move all functions associated with the submit function onto the Trait

Before

Email forms call static functions on CRM/Contact/Form/Task/EmailCommon

After

The functions are deprecated & duplicated onto the shared trait

Technical Details

Using the trait makes it much clearer what is defined / what functions are available to the forms as we can move the properties and functions required for email to the forms.

They are left on the EmailCommon class for a little bit in case of unsupported use of it by extensions

Comments

@civibot
Copy link

civibot bot commented Apr 11, 2020

(Standard links)

@civibot civibot bot added the master label Apr 11, 2020
@eileenmcnaughton eileenmcnaughton changed the title [REF] move all functions associated with the submit function onto th… [REF] move all functions associated with the submit function onto the Trait Apr 11, 2020
@colemanw
Copy link
Member

Makes sense. Refactor looks good.

@seamuslee001
Copy link
Contributor

test fail relates

@eileenmcnaughton eileenmcnaughton merged commit 3d06904 into civicrm:master Apr 13, 2020
@eileenmcnaughton eileenmcnaughton deleted the email3 branch April 13, 2020 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants