ソースを参照

Contact image is replaced by gravatar only if no image attached

version-14
Nabin Hait 8年前
コミット
df1347d5f1
1個のファイルの変更1行の追加1行の削除
  1. +1
    -1
      frappe/email/doctype/contact/contact.py

+ 1
- 1
frappe/email/doctype/contact/contact.py ファイルの表示

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


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


deduplicate_dynamic_links(self) deduplicate_dynamic_links(self)


読み込み中…
キャンセル
保存