10000 fix(communication): don't change email case (backport #24188) by mergify[bot] · Pull Request #24193 · frappe/frappe · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix(communication): don't change email case (backport #24188) #24193

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

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
8000
Diff view
Diff view
2 changes: 1 addition & 1 deletion frappe/core/doctype/communication/communication.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def _get_emails_list(emails=None, exclude_displayname=False):
emails = split_emails(emails) if isinstance(emails, str) else (emails or [])
if exclude_displayname:
return [email.lower() for email in {parse_addr(email)[1] for email in emails} if email]
return [email.lower() for email in set(emails) if email]
return [email for email in set(emails) if email]

def to_list(self, exclude_displayname=True):
"""Returns to list."""
Expand Down
0