-
-
Notifications
You must be signed in to change notification settings - Fork 825
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] extract function to getEmailDefaults #21067
Conversation
(Standard links)
|
0f48c1e
to
99b696b
Compare
if (is_numeric(key($form->_fromEmails))) { | ||
$emailID = (int) key($form->_fromEmails); | ||
$defaults = CRM_Core_BAO_Email::getEmailSignatureDefaults($emailID); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moving this up seems like it would fix resetting defaults where it seems the intent was to default to the logged in contact, although it seems to do that before anyway so 🤷
This PR seems ok but I am seeing a weird thing on my local so just want to check that out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@demeritcowboy ueah I read the setting & then potentially usetting of defaults as a mistake - maybe I'm wrong?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow where did the last 12 hours go? The patch is stale now - EmailCommon doesn't git-apply.
Otherwise if I make those changes manually it seems fine. I'll put up a PR for the thing I was seeing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@demeritcowboy should I rebase or will this be superceded & perhaps closable with your patch?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry it should be rebased - my thing ended up being unrelated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok - rebased
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks - merge-on-pass'd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool
Part of terminally deprecating the EmailCommon class
99b696b
to
d7b498b
Compare
Overview
[Ref] extract function to getEmailDefaults
Before
This discrete functionality is part of a longer function
After
Separated out
Technical Details
Part of terminally deprecating the EmailCommon class
Comments