Browse Source

Contact image is replaced by gravatar only if no image attached

version-14
Nabin Hait 8 years ago
parent
commit
df1347d5f1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frappe/email/doctype/contact/contact.py

+ 1
- 1
frappe/email/doctype/contact/contact.py View File

@@ -21,7 +21,7 @@ class Contact(Document):

def validate(self):
self.set_user()
if self.email_id:
if self.email_id and not self.image:
self.image = has_gravatar(self.email_id)

deduplicate_dynamic_links(self)


Loading…
Cancel
Save